[Bugs] [Bug 1362129] rename of a file can cause data loss in an replica/arbiter volume configuration
bugzilla at redhat.com
bugzilla at redhat.com
Tue Dec 18 16:24:54 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1362129
Ravishankar N <ravishankar at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Doc Type|If docs needed, set a value |Bug Fix
Flags|needinfo?(ravishankar at redha |
|t.com) |
--- Doc Text *updated* ---
Cause:
If a file was renamed when the brick with only good copy in a replica 3 volume was down, then there was a possibility that it got removed as a part of entry self-heal when it came back up.
Consequence:
This lead to loss of data because the only good copy was removed and the contents of the file from the bad bricks got healed into it.
Fix:
Since a lookup precedes all fops on gluster, the fix is to fail lookup of a file if there is no good copy (as determined by afr xttrs on it) during lookup. If lookup fails, rename also won't be allowed.
Result:
There is no data loss.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Bugs
mailing list