[sheepdog] [PATCH] test: wait to kill other nodes until the recovery finishs in 026
levin li
levin108 at gmail.com
Wed Aug 22 10:06:39 CEST 2012
From: levin li <xingke.lwp at taobao.com>
We kill two nodes in test 026 and then kill another two nodes, if
the recovery doesn't finish, four nodes leave may cause object lost,
as our default redundancy level is 3.
Signed-off-by: levin li <xingke.lwp at taobao.com>
---
tests/026 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/026 b/tests/026
index 00c06d0..3f2fe7f 100755
--- a/tests/026
+++ b/tests/026
@@ -33,11 +33,11 @@ done
# kill nodes and join them back
sleep 1
for i in 1 2; do _kill_sheep $i;done
-sleep 6
+_wait_for_sheep_recovery 0
for i in 3 4; do _kill_sheep $i;done
-sleep 6
+_wait_for_sheep_recovery 0
for i in 5; do _kill_sheep $i;done
-sleep 6
+_wait_for_sheep_recovery 0
for i in `seq 1 5`; do _start_sheep $i;done
_wait_for_collie
--
1.7.1
More information about the sheepdog
mailing list