[Bugs] [Bug 1521045] New: Race in file creation while a brick is offline
bugzilla at redhat.com
bugzilla at redhat.com
Tue Dec 5 17:01:26 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1521045
Bug ID: 1521045
Summary: Race in file creation while a brick is offline
Product: GlusterFS
Version: mainline
Component: posix
Assignee: bugs at gluster.org
Reporter: jeff at pl.atyp.us
CC: bugs at gluster.org
If a file is deleted while a brick is offline, and a file by the same
name is subsequently created once the brick has been brought back
online but not fully healed, the brick returns the old, pre-deletion
GFID for the file, This results in lack of consensus about the GFID,
which is bad, and usually manifests as EROFS.
Fix by making bricks honor the GFID requested by the server when
a file is created, even if there is a pre-existing one. This fixes
the race and has the additional benefit that any clients with the old
GFID will get ESTALE accessing the old file instead of silently
getting access to a file which differs fromthe one they thought they
were accessing.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list