Bug 1496321
Summary: | [afr] split-brain observed on T files post hardlink and rename in x3 volume | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Ravishankar N <ravishankar> |
Component: | replicate | Assignee: | Ravishankar N <ravishankar> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | medium | ||
Version: | 3.10 | CC: | bugs, nchilaka, rhinduja, rhs-bugs, sheggodu, storage-qa-internal |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.10.6 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1491670 | Environment: | |
Last Closed: | 2017-10-06 17:12:24 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: | 1482812, 1491670 | ||
Bug Blocks: | 1496317 |
Description
Ravishankar N
2017-09-27 04:18:33 UTC
REVIEW: https://review.gluster.org/18402 (afr: auto-resolve split-brains for zero-byte files) posted (#1) for review on release-3.10 by Ravishankar N (ravishankar) COMMIT: https://review.gluster.org/18402 committed in release-3.10 by Shyamsundar Ranganathan (srangana) ------ commit f5998f07dfd21d06a4119416ca79db50232b50d4 Author: Ravishankar N <ravishankar> Date: Wed Sep 27 10:32:36 2017 +0530 afr: auto-resolve split-brains for zero-byte files Backport of https://review.gluster.org/#/c/18283/ Problems: As described in BZ 1491670, renaming hardlinks can result in data/mdata split-brain of the DHT link-to files (T files) without any mismatch of data and metadata. As described in BZ 1486063, for a zero-byte file with only dirty bits set, arbiter brick will likely be chosen as the source brick. Fix: For zero byte files in split-brain, pick first brick as a) data source if file size is zero on all bricks. b) metadata source if metadata is the same on all bricks In arbiter case, if file size is zero on all bricks and there are no pending afr xattrs, pick 1st brick as data source. Change-Id: I0270a9a2f97c3b21087e280bb890159b43975e04 BUG: 1496321 Signed-off-by: Ravishankar N <ravishankar> Reported-by: Rahul Hinduja <rhinduja> Reported-by: Mabi <mabi> REVIEW: https://review.gluster.org/18421 (afr: don't check for file size in afr_mark_source_sinks_if_file_empty) posted (#1) for review on release-3.10 by Ravishankar N (ravishankar) COMMIT: https://review.gluster.org/18421 committed in release-3.10 by Shyamsundar Ranganathan (srangana) ------ commit ccec52220f4d2fb148c1bb1573a11b1727af7a0c Author: Ravishankar N <ravishankar> Date: Tue Sep 26 14:03:52 2017 +0530 afr: don't check for file size in afr_mark_source_sinks_if_file_empty ... for AFR_METADATA_TRANSACTION and just mark source and sinks if metadata is the same. (cherry picked from commit 24637d54dcbc06de8a7de17c75b9291fcfcfbc84) Change-Id: I69e55d3c842c7636e3538d1b57bc4deca67bed05 BUG: 1496321 Signed-off-by: Ravishankar N <ravishankar> 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.10.6, please open a new bug report. glusterfs-3.10.6 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] http://lists.gluster.org/pipermail/announce/2017-October/000084.html [2] https://www.gluster.org/pipermail/gluster-users/ |