Project

General

Profile

Actions

Fix #10874

open

MDS: file recovery overwrites explicit client timestamps

Added by Alexandre Oliva about 9 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, Common/Protocol, MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I think I've had an open bug about this for a very long time, but I couldn't find it, and I think it had been regarded as another problem, already fixed.

The problem arises when rsyncing a tree within cephfs with -a, so that timestamps are preserved.

If mds recovery takes place, timestamps may go out of sync.

I think I finally have a working theory to explain this: it is the file size and mtime recovery.

We take the latest mtime among the objects the object is striped into, but recovery takes place after replaying the journal, so we override the mtime set by rsync.

I get this is with Giant; I haven't tried newer releases yet.

Actions

Also available in: Atom PDF