diff options
| author | Jeff Darcy <jdarcy@fb.com> | 2017-09-27 13:18:25 -0700 |
|---|---|---|
| committer | Jeff Darcy <jdarcy@fb.com> | 2017-09-27 16:03:35 -0700 |
| commit | d9f9be442808ed13135f560698a2f95fe66282a5 (patch) | |
| tree | 2a18c75ca3c3ab59bf8f42381e48911a7744f9d6 /tests/bugs/fb2506544_mtime.t | |
| parent | e3e7c56323a21467e7e0a0d8f2adc5b05ce40a54 (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_mtime.t')
| -rwxr-xr-x | tests/bugs/fb2506544_mtime.t | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/bugs/fb2506544_mtime.t b/tests/bugs/fb2506544_mtime.t index b908fdaddd5..b68c6b2e089 100755 --- a/tests/bugs/fb2506544_mtime.t +++ b/tests/bugs/fb2506544_mtime.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-mtime off TEST $CLI volume set $V0 cluster.quorum-type fixed TEST $CLI volume set $V0 cluster.quorum-count 1 TEST $CLI volume start $V0 @@ -62,8 +61,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 we modified last. umount $M0 -#EST $CLI volume set $V0 cluster.favorite-child-by-mtime on -TEST $CLI volume set $V0 cluster.favorite-child-policy mtime +TEST $CLI volume set $V0 cluster.favorite-child-by-mtime on sleep 1 # Mount the volume TEST glusterfs --log-level DEBUG --volfile-id=/$V0 --volfile-server=$H0 $M0 \ @@ -86,7 +84,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-mtime off TEST $CLI volume set $V0 cluster.quorum-type fixed TEST $CLI volume set $V0 cluster.quorum-count 1 TEST $CLI volume start $V0 @@ -134,8 +131,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 we modified last. umount $M0 -#EST $CLI volume set $V0 cluster.favorite-child-by-mtime on -TEST $CLI volume set $V0 cluster.favorite-child-policy mtime +TEST $CLI volume set $V0 cluster.favorite-child-by-mtime on TEST $CLI volume set $V0 cluster.self-heal-daemon on sleep 1 /etc/init.d/glusterd restart_shd |
