summaryrefslogtreecommitdiffstats
path: root/tests/bugs/fb2506544_majority.t
diff options
context:
space:
mode:
authorJeff Darcy <jdarcy@fb.com>2017-09-27 13:18:25 -0700
committerJeff Darcy <jdarcy@fb.com>2017-09-27 16:03:35 -0700
commitd9f9be442808ed13135f560698a2f95fe66282a5 (patch)
tree2a18c75ca3c3ab59bf8f42381e48911a7744f9d6 /tests/bugs/fb2506544_majority.t
parente3e7c56323a21467e7e0a0d8f2adc5b05ce40a54 (diff)
self-heal: fix automatic split-brain resolution options
Differential Revision: https://phabricator.intern.facebook.com/D5927193 Change-Id: Ife04c8738b9ee721e7be9bc843b2f6d54bbb468e
Diffstat (limited to 'tests/bugs/fb2506544_majority.t')
-rwxr-xr-xtests/bugs/fb2506544_majority.t9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/bugs/fb2506544_majority.t b/tests/bugs/fb2506544_majority.t
index c38a6d59947..a2c489a4063 100755
--- a/tests/bugs/fb2506544_majority.t
+++ b/tests/bugs/fb2506544_majority.t
@@ -16,8 +16,6 @@ TEST $CLI volume set $V0 cluster.self-heal-daemon off
TEST $CLI volume set $V0 cluster.data-self-heal on
TEST $CLI volume set $V0 cluster.metadata-self-heal on
TEST $CLI volume set $V0 cluster.entry-self-heal on
-#EST $CLI volume set $V0 cluster.favorite-child-by-majority off
-TEST $CLI volume set $V0 cluster.favorite-child-policy majority
# This would normally be a toxic combination because it allows us to create a
# split brain by writing to 1/3 replicas ... but for testing that's exactly
# what we want.
@@ -67,8 +65,7 @@ sleep 1
# Compare MD5's, the healed file should be that of the file which is
# on 2/3 bricks.
umount $M0
-#EST $CLI volume set $V0 cluster.favorite-child-by-majority on
-TEST $CLI volume set $V0 cluster.favorite-child-policy majority
+TEST $CLI volume set $V0 cluster.favorite-child-by-majority on
sleep 1
# Mount the volume
TEST glusterfs --log-level DEBUG --volfile-id=/$V0 --volfile-server=$H0 $M0 \
@@ -91,7 +88,6 @@ TEST $CLI volume set $V0 cluster.self-heal-daemon off
TEST $CLI volume set $V0 cluster.data-self-heal off
TEST $CLI volume set $V0 cluster.metadata-self-heal off
TEST $CLI volume set $V0 cluster.entry-self-heal off
-#EST $CLI volume set $V0 cluster.favorite-child-by-majority off
TEST $CLI volume set $V0 cluster.quorum-type fixed
TEST $CLI volume set $V0 cluster.quorum-count 1
TEST $CLI volume start $V0
@@ -139,8 +135,7 @@ sleep 1
# Compare MD5's, the healed file should be that of the file which is
# on 2/3 bricks.
umount $M0
-#EST $CLI volume set $V0 cluster.favorite-child-by-majority on
-TEST $CLI volume set $V0 cluster.favorite-child-policy majority
+TEST $CLI volume set $V0 cluster.favorite-child-by-majority on
TEST $CLI volume set $V0 cluster.self-heal-daemon on
sleep 1
/etc/init.d/glusterd restart_shd