From 35cd7053eaf7b41046a505247388a0724b74c3c7 Mon Sep 17 00:00:00 2001 From: Pranith Kumar Karampuri Date: Fri, 4 Mar 2016 20:26:51 -0800 Subject: Revert "afr: do not set arbiter as a readable subvol in inode context" This reverts commit ad0b1253b9d74797620c493184818685c024f17c. Change-Id: Id43ba8e75d58325f897e15e3f64f9389236adb40 Reviewed-on: http://review.gluster.org/13608 Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- tests/basic/afr/arbiter.t | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/basic/afr') diff --git a/tests/basic/afr/arbiter.t b/tests/basic/afr/arbiter.t index a04dfc560ef..be8f676d1ec 100644 --- a/tests/basic/afr/arbiter.t +++ b/tests/basic/afr/arbiter.t @@ -20,7 +20,6 @@ TEST $CLI volume delete $V0 # Create and mount a replica 3 arbiter volume. TEST $CLI volume create $V0 replica 3 arbiter 1 $H0:$B0/${V0}{0,1,2} TEST $CLI volume set $V0 performance.write-behind off -TEST $CLI volume set $V0 performance.stat-prefetch off TEST $CLI volume set $V0 cluster.self-heal-daemon off TEST $CLI volume start $V0 TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 --entry-timeout=0 $M0; @@ -41,11 +40,9 @@ TEST kill_brick $V0 $H0 $B0/${V0}1 echo "B2 is down, B3 is the only source, writes will fail" >> $M0/file EXPECT_NOT "0" echo $? TEST ! cat $M0/file -# Though metadata IO could have been served from arbiter, we do not allow it -# anymore as FOPS like getfattr could be overloaded to return iatt buffers for -# use by other translators. -TEST ! getfattr -n user.name $M0/file -TEST ! setfattr -n user.name -v value3 $M0/file +# Metadata I/O should still succeed. +TEST getfattr -n user.name $M0/file +TEST setfattr -n user.name -v value3 $M0/file #shd should not data self-heal from arbiter to the sinks. TEST $CLI volume set $V0 cluster.self-heal-daemon on -- cgit