Bug 1496317
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.12 | 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-glusterfs-3.12.2 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1491670 | Environment: | |
Last Closed: | 2017-10-13 12:46:54 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, 1496321 | ||
Bug Blocks: | 1491574 |
Description
Ravishankar N
2017-09-27 04:11:44 UTC
REVIEW: https://review.gluster.org/18401 (afr: auto-resolve split-brains for zero-byte files) posted (#1) for review on release-3.12 by Ravishankar N (ravishankar) REVIEW: https://review.gluster.org/18401 (afr: auto-resolve split-brains for zero-byte files) posted (#2) for review on release-3.12 by Ravishankar N (ravishankar) COMMIT: https://review.gluster.org/18401 committed in release-3.12 by jiffin tony Thottan (jthottan) ------ commit c0d4b32cb028e8b4928ace22468d692fb7e42ca4 Author: Ravishankar N <ravishankar> Date: Thu Sep 14 11:29:15 2017 +0530 afr: auto-resolve split-brains for zero-byte files 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. (cherry picked from commit 1719cffa911c5287715abfdb991bc8862f0c994e) Change-Id: I0270a9a2f97c3b21087e280bb890159b43975e04 BUG: 1496317 Signed-off-by: Ravishankar N <ravishankar> Reported-by: Rahul Hinduja <rhinduja> Reported-by: Mabi <mabi> Jiffin, there is one more patch I need to send on this bug. REVIEW: https://review.gluster.org/18434 (afr: don't check for file size in afr_mark_source_sinks_if_file_empty) posted (#1) for review on release-3.12 by Ravishankar N (ravishankar) COMMIT: https://review.gluster.org/18434 committed in release-3.12 by jiffin tony Thottan (jthottan) ------ commit 07f07554acea41e2faae88724664491eb00a35f4 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: 1496317 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-glusterfs-3.12.2, please open a new bug report. glusterfs-glusterfs-3.12.2 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/gluster-users/2017-October/032684.html [2] https://www.gluster.org/pipermail/gluster-users/ |