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

Also available in: Atom PDF