summaryrefslogtreecommitdiffstats
path: root/tests/bugs/fb2506544_size.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_size.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_size.t')
-rwxr-xr-xtests/bugs/fb2506544_size.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/bugs/fb2506544_size.t b/tests/bugs/fb2506544_size.t
index 593c1053853..731ffd13f56 100755
--- a/tests/bugs/fb2506544_size.t
+++ b/tests/bugs/fb2506544_size.t
@@ -16,7 +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-size off
TEST $CLI volume set $V0 cluster.quorum-type fixed
TEST $CLI volume set $V0 cluster.quorum-count 1
TEST $CLI volume start $V0
@@ -61,8 +60,7 @@ sleep 1
# Ok now turn the favorite-child option and we should be able to read it.
# Compare MD5's, the MD5 should be of the file that is the largest.
umount $M0
-#EST $CLI volume set $V0 cluster.favorite-child-by-size on
-TEST $CLI volume set $V0 cluster.favorite-child-policy size
+TEST $CLI volume set $V0 cluster.favorite-child-by-size on
sleep 1
# Mount the volume
TEST glusterfs --log-level DEBUG --volfile-id=/$V0 --volfile-server=$H0 $M0 \
@@ -88,7 +86,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-size off
TEST $CLI volume set $V0 cluster.quorum-type fixed
TEST $CLI volume set $V0 cluster.quorum-count 1
TEST $CLI volume start $V0
@@ -135,8 +132,7 @@ sleep 1
# Ok now turn the favorite-child option and we should be able to read it.
# Compare MD5's, the MD5 should be of the file that is the largest.
umount $M0
-#EST $CLI volume set $V0 cluster.favorite-child-by-size on
-TEST $CLI volume set $V0 cluster.favorite-child-policy size
+TEST $CLI volume set $V0 cluster.favorite-child-by-size on
TEST $CLI volume set $V0 cluster.self-heal-daemon on
sleep 1
/etc/init.d/glusterd restart_shd