[Bugs] [Bug 1252244] DHT : If Directory creation is in progress and rename of that Directory comes from another mount point then after both operation few files are not accessible and not listed on mount and more than one Directory have same gfid
bugzilla at redhat.com
bugzilla at redhat.com
Wed Apr 6 15:28:21 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1252244
--- Comment #9 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/11880 committed in master by Jeff Darcy
(jdarcy at redhat.com)
------
commit 6e3b4eae1ae559d16721f765294ab30a270820d0
Author: Sakshi <sabansal at redhat.com>
Date: Wed Aug 5 16:05:22 2015 +0530
dht: lock on subvols to prevent rename and lookup selfheal race
This patch addresses two races while renaming directories:
1) While renaming src to dst, if a lookup selfheal is triggered
it can recreate src on those subvols where rename was successful.
This leads to multiple directories (src and dst) having same gfid.
To avoid this we must take locks on all subvols with src.
2) While renaming if the dst exists and a lookup selfheal is
triggered it will find anomalies in the dst layout and try to
heal the stale layout. To avoid this we must take lock on any
one subvol with dst.
Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53
BUG: 1252244
Signed-off-by: Sakshi <sabansal at redhat.com>
Reviewed-on: http://review.gluster.org/11880
Smoke: Gluster Build System <jenkins at build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=5s4zcEUz9n&a=cc_unsubscribe
More information about the Bugs
mailing list