diff options
Diffstat (limited to 'tests/bugs/bug-865825.t')
-rwxr-xr-x | tests/bugs/bug-865825.t | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/bugs/bug-865825.t b/tests/bugs/bug-865825.t index 8ee751864..6bb1c2348 100755 --- a/tests/bugs/bug-865825.t +++ b/tests/bugs/bug-865825.t @@ -2,8 +2,6 @@ . $(dirname $0)/../include.rc -cleanup; - TEST glusterd TEST pidof glusterd TEST $CLI volume info; @@ -30,7 +28,6 @@ EXPECT 'Created' volinfo_field $V0 'Status'; ## Make sure io-cache and write-behind don't interfere. TEST $CLI volume set $V0 cluster.background-self-heal-count 0 TEST $CLI volume set $V0 performance.io-cache off; -TEST $CLI volume set $V0 performance.quick-read off; TEST $CLI volume set $V0 performance.write-behind off; TEST $CLI volume set $V0 performance.stat-prefetch off @@ -57,18 +54,19 @@ setfattr -n trusted.afr.${V0}-client-2 -v $value $B0/${V0}-0/a_file setfattr -x trusted.afr.${V0}-client-2 $B0/${V0}-1/a_file echo "wrong_data" > $B0/${V0}-2/a_file -gluster volume set $V0 cluster.self-heal-daemon on -sleep 3 -gluster volume heal $V0 full +## Remount and force a self-heal. +TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0 +stat ${M0}/a_file > /dev/null ## Make sure brick 2 now has the correct contents. -EXPECT_WITHIN 30 "test_data" cat $B0/${V0}-2/a_file +EXPECT "test_data" cat $B0/${V0}-2/a_file if [ "$EXIT_EARLY" = "1" ]; then exit 0; fi ## Finish up +TEST umount $M0; TEST $CLI volume stop $V0; EXPECT 'Stopped' volinfo_field $V0 'Status'; |