Project

General

Profile

Bug #355

snapshots fail to maintain data integrity

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

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I've been noticing snapshots that have corrupted data if you quickly delete the original contents after snapshotting. I've produced this in both cfuse and kclient and wrote a unit test, but the unit test seems to always pass. It's also possible that if you cross the client's buffer size you don't hit this issue. But I tried it with a 2.2MB file and consistently failed, while doing so with the unit test it continued to pass.
No idea what's going on, but I kept logs of both cases. Figure it out!

History

#1 Updated by Sage Weil over 13 years ago

  • Assignee changed from Greg Farnum to Sage Weil

reproduced with 5a89b8b2c9e871ece9e01390eac317df8e4b7d86 and added snaptest-snap-rm-cmp.sh

#2 Updated by Sage Weil over 13 years ago

  • Status changed from New to Resolved

There were some snapshot writeback problems contributing, that are fixed in unstable. Then there was an osd race when cloning the snap object and then reading it again, fixed by d0f6991eb6ac32da09b40e652b666c0aaded60ff

Also available in: Atom PDF