Project

General

Profile

Actions

Bug #873

closed

MDS journaler needs to truncate ahead of writes

Added by Greg Farnum about 13 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

As discussed briefly in #805, there is a race condition due to MDS failover where an old MDS could have written log data that the new MDS is not aware of. To deal with this, we need to truncate log objects before we start writing to them.

I think I'll set this up so that it can truncate an arbitrary (configurable) number ahead (and just does the minimum required number on startup) so that we can tune the number of blocks to prevent this impacting performance by blocking logging, which would be sad.

Actions #1

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_story_points set to 3
  • Translation missing: en.field_position set to 1
  • Translation missing: en.field_position changed from 1 to 534
Actions #2

Updated by Greg Farnum about 13 years ago

  • Status changed from New to In Progress
  • Priority changed from Normal to Low

I've actually done a lot on this but it's all been in bites and nibbles, and given how unlikely it is to actually be a problem I'm reducing the priority.

Actions #3

Updated by Sage Weil about 13 years ago

  • Target version changed from v0.26 to v0.27
Actions #4

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_story_points changed from 3 to 5
  • Translation missing: en.field_position deleted (546)
  • Translation missing: en.field_position set to 331
Actions #5

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_story_points changed from 5 to 3
  • Translation missing: en.field_position deleted (331)
  • Translation missing: en.field_position set to 331
Actions #6

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_position deleted (331)
  • Translation missing: en.field_position set to 331
Actions #7

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_position deleted (332)
  • Translation missing: en.field_position set to 339
Actions #8

Updated by Sage Weil about 13 years ago

  • Translation missing: en.field_position deleted (339)
  • Translation missing: en.field_position set to 338
Actions #9

Updated by Sage Weil about 13 years ago

  • Target version changed from v0.27 to v0.28
  • Translation missing: en.field_position deleted (351)
  • Translation missing: en.field_position set to 4
Actions #10

Updated by Sage Weil about 13 years ago

  • Status changed from In Progress to New
  • Translation missing: en.field_position deleted (12)
  • Translation missing: en.field_position set to 12
Actions #11

Updated by Greg Farnum about 13 years ago

  • Translation missing: en.field_position deleted (13)
  • Translation missing: en.field_position set to 2
Actions #12

Updated by Greg Farnum about 13 years ago

  • Assignee changed from Greg Farnum to Sage Weil
Actions #13

Updated by Sage Weil about 13 years ago

  • Status changed from New to Resolved
  • Priority changed from Low to Normal

commit:b05f1ba4c46976bd96a1df8a582dffd89860eb34

Actions #14

Updated by John Spray over 7 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (1)
  • Target version deleted (v0.28)

Bulk updating project=ceph category=mds bugs so that I can remove the MDS category from the Ceph project to avoid confusion.

Actions

Also available in: Atom PDF