Bug 1503519
Summary: | default timeout of 5min not honored for analyzing split-brain files post setfattr replica.split-brain-heal-finalize | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Karthik U S <ksubrahm> | |
Component: | replicate | Assignee: | Karthik U S <ksubrahm> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | mainline | CC: | bugs, nchilaka, ravishankar, rhs-bugs, storage-qa-internal | |
Target Milestone: | --- | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.13.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1360331 | |||
: | 1514380 1514388 (view as bug list) | Environment: | ||
Last Closed: | 2017-12-08 17:44:30 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: | ||||
Bug Blocks: | 1360331, 1514380, 1514388 |
Comment 1
Karthik U S
2017-10-18 11:11:42 UTC
REVIEW: https://review.gluster.org/18546 (cluster/afr: Honor default timeout of 5min for analyzing split-brain files) posted (#1) for review on master by Karthik U S (ksubrahm) REVIEW: https://review.gluster.org/18546 (cluster/afr: Honor default timeout of 5min for analyzing split-brain files) posted (#2) for review on master by Karthik U S (ksubrahm) REVIEW: https://review.gluster.org/18546 (cluster/afr: Honor default timeout of 5min for analyzing split-brain files) posted (#3) for review on master by Karthik U S (ksubrahm) COMMIT: https://review.gluster.org/18546 committed in master by ------------- cluster/afr: Honor default timeout of 5min for analyzing split-brain files Problem: After setting split-brain-choice option to analyze the file to resolve the split brain using the command "setfattr -n replica.split-brain-choice -v "choiceX" <path-to-file>" should allow to access the file from mount for default timeout of 5mins. But the timeout was not honored and was able to access the file even after the timeout. Fix: Call the inode_invalidate() in afr_set_split_brain_choice_cbk() so that it will triger the cache invalidate after resetting the timer and the split brain choice. So the next calls to access the file will fail with EIO. Change-Id: I698cb833676b22ff3e4c6daf8b883a0958f51a64 BUG: 1503519 Signed-off-by: karthik-us <ksubrahm> REVIEW: https://review.gluster.org/18795 (cluster/afr: Honor default timeout of 5min for analyzing split-brain files) posted (#1) for review on release-3.12 by Karthik U S REVISION POSTED: https://review.gluster.org/18795 (cluster/afr: Honor default timeout of 5min for analyzing split-brain files) posted (#2) for review on release-3.12 by Karthik U S 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.13.0, please open a new bug report. glusterfs-3.13.0 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-December/000087.html [2] https://www.gluster.org/pipermail/gluster-users/ |