From 719c927592cfdb0de88243769d477ca211a2b494 Mon Sep 17 00:00:00 2001 From: Anuradha Date: Sat, 9 May 2015 10:25:08 +0530 Subject: cluster/afr : Prevent inode-evict during split-brain resolution Backport of: http://review.gluster.org/#/c/10134/ 1) Provided setfattr command to set timeout for split-brain choice. 2) If split-brain inspection/resolution is being done from the mount for a file, ref the inode when split-brain-choice is set. This inode will be unconditionally unref-ed after timeout seconds set by the user/default otherwise. 3) Updated the doc and testcase to reflect the changes. Change-Id: I15c9037dee28855f21e680e7e3632e1f48dba4e1 BUG: 1219388 Reviewed-on: http://review.gluster.org/10134 Reviewed-by: Krutika Dhananjay Reviewed-by: Ravishankar N Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Signed-off-by: Anuradha Reviewed-on: http://review.gluster.org/10679 --- tests/basic/afr/split-brain-resolution.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/basic') diff --git a/tests/basic/afr/split-brain-resolution.t b/tests/basic/afr/split-brain-resolution.t index 03e51cf92b1..fa1342e2cd5 100644 --- a/tests/basic/afr/split-brain-resolution.t +++ b/tests/basic/afr/split-brain-resolution.t @@ -50,6 +50,7 @@ TEST setfattr -n replica.split-brain-choice -v $V0-client-0 $M0/data-split-brain #Should now be able to read the contents of data-split-brain.txt EXPECT "brick0_alive" cat $M0/data-split-brain.txt +TEST setfattr -n replica.split-brain-choice-timeout -v 10 $M0/ TEST setfattr -n replica.split-brain-choice -v $V0-client-1 $M0/data-split-brain.txt #Should now be able to read the contents of data-split-brain.txt -- cgit