[Bugs] [Bug 1514388] default timeout of 5min not honored for analyzing split-brain files post setfattr replica.split-brain-heal-finalize

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 27 13:50:52 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1514388



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18796 committed in release-3.10 by \"Karthik
U S\" <ksubrahm at redhat.com> with a commit message- 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: 1514388
Signed-off-by: karthik-us <ksubrahm at redhat.com>
(cherry picked from commit 933ec57ccda2c1ba5ce6f207313c3b6802e67ca3)

-- 
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=d8pPaqKsD8&a=cc_unsubscribe


More information about the Bugs mailing list