[sheepdog] [PATCH 2/2] tests/063: refine it to test node joining

Liu Yuan namei.unix at gmail.com
Fri May 31 14:16:43 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 tests/063     |    3 +++
 tests/063.out |   17 ++++++++++-------
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/tests/063 b/tests/063
index 8892904..cd9b385 100755
--- a/tests/063
+++ b/tests/063
@@ -21,6 +21,7 @@ _make_device 1 $((100 * 1024 ** 2))
 _make_device 2 $((100 * 1024 ** 2))
 _make_device 3 $((100 * 1024 ** 2))
 _make_device 4 $((100 * 1024 ** 2))
+_make_device 5 $((100 * 1024 ** 2))
 
 #start three in different size
 for i in 0 1 2; do
@@ -39,6 +40,8 @@ $COLLIE node md plug $STORE/4
 _wait_for_sheep_recovery 0
 
 $COLLIE cluster reweight
+_start_sheep 5
+_wait_for_sheep 5
 _wait_for_sheep_recovery 0
 $COLLIE node info
 $COLLIE node list
diff --git a/tests/063.out b/tests/063.out
index 4750a05..b21f220 100644
--- a/tests/063.out
+++ b/tests/063.out
@@ -14,22 +14,25 @@ M   Id   Host:Port         V-Nodes       Zone
 -    2   127.0.0.1:7002      	64          2
 -    3   127.0.0.1:7003      	 0          3
 Id	Size	Used	Avail	Use%
- 0	190 MB	100 MB	90 MB	 52%
- 1	95 MB	60 MB	35 MB	 62%
- 2	95 MB	44 MB	51 MB	 46%
+ 0	190 MB	68 MB	122 MB	 35%
+ 1	95 MB	56 MB	39 MB	 58%
+ 2	95 MB	36 MB	59 MB	 37%
  3	0.0 MB	0.0 MB	0.0 MB	  0%
-Total	381 MB	204 MB	177 MB	 53%
+ 4	95 MB	44 MB	51 MB	 46%
+Total	476 MB	204 MB	272 MB	 42%
 
 Total virtual image size	200 MB
 M   Id   Host:Port         V-Nodes       Zone
--    0   127.0.0.1:7000      	96          0
--    1   127.0.0.1:7001      	48          1
--    2   127.0.0.1:7002      	48          2
+-    0   127.0.0.1:7000      	102          0
+-    1   127.0.0.1:7001      	51          1
+-    2   127.0.0.1:7002      	51          2
 -    3   127.0.0.1:7003      	 0          3
+-    4   127.0.0.1:7005      	51          5
 Cluster status: running, auto-recovery enabled
 
 Cluster created at DATE
 
 Epoch Time           Version
+DATE      3 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003, 127.0.0.1:7005]
 DATE      2 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003]
 DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003]
-- 
1.7.9.5



More information about the sheepdog mailing list