Bug 1324381
Summary: | 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 | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Sakshi <sabansal> |
Component: | distribute | Assignee: | Sakshi <sabansal> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.7.10 | CC: | bugs, mzywusko, nbalacha, racpatel, smohan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.7.11 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1252244 | Environment: | |
Last Closed: | 2016-04-19 07:13:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1092510, 1118770, 1118780, 1139172, 1252244, 1328473 | ||
Bug Blocks: |
Description
Sakshi
2016-04-06 08:39:11 UTC
REVIEW: http://review.gluster.org/13917 (dht: lock on subvols to prevent rename and lookup selfheal race) posted (#1) for review on release-3.7 by Sakshi Bansal COMMIT: http://review.gluster.org/13917 committed in release-3.7 by Raghavendra G (rgowdapp) ------ commit 0a01154c68cb5eb884096fc67288a71c391d9160 Author: Sakshi <sabansal> 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. Backport of http://review.gluster.org/#/c/11880/ > Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53 > BUG: 1252244 > Signed-off-by: Sakshi <sabansal> Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53 BUG: 1324381 Signed-off-by: Sakshi <sabansal> Reviewed-on: http://review.gluster.org/13917 Smoke: Gluster Build System <jenkins.com> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.com> Reviewed-by: Raghavendra G <rgowdapp> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.11, please open a new bug report. glusterfs-3.7.11 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] https://www.gluster.org/pipermail/gluster-users/2016-April/026321.html [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |