提交 5539b262 编写于 作者: H Hui Li

[modify]

上级 a08c7405
...@@ -69,14 +69,13 @@ sql use $db ...@@ -69,14 +69,13 @@ sql use $db
print ============== step3: create stable stb1 print ============== step3: create stable stb1
$stb = stb1 $stb = stb1
print create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(16)) sql create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(8))
sql create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(16))
print ============== step4: start others client print ============== step4: start 10 client1/ 10 client2/ 10 client3/ 10 client4/ 1 client5
run_back unique/cluster/client1_0.sim run_back unique/cluster/client1_0.sim
run_back unique/cluster/client1_1.sim #run_back unique/cluster/client1_1.sim
run_back unique/cluster/client1_2.sim #run_back unique/cluster/client1_2.sim
run_back unique/cluster/client1_3.sim #run_back unique/cluster/client1_3.sim
#run_back unique/cluster/client2_0.sim #run_back unique/cluster/client2_0.sim
#run_back unique/cluster/client2_1.sim #run_back unique/cluster/client2_1.sim
#run_back unique/cluster/client2_2.sim #run_back unique/cluster/client2_2.sim
...@@ -119,16 +118,14 @@ sql create dnode $hostname5 ...@@ -119,16 +118,14 @@ sql create dnode $hostname5
sleep 5000 sleep 5000
print ============== step6: stop dnode1 print ============== step6: stop and drop dnode1, then remove data dir of dnode1
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 10000 sleep 5000
#sql drop dnode $hostname1 sql drop dnode $hostname1
#sleep 5000 sleep 5000
#system rm -rf ../../../sim/dnode1/data
#sleep 20000 system rm -rf ../../../sim/dnode1/data
print ============== step6-1: restart dnode1 sleep 20000
system sh/exec.sh -n dnode1 -s start
sleep 10000
sql show mnodes sql show mnodes
print show mnodes print show mnodes
...@@ -241,12 +238,11 @@ endi ...@@ -241,12 +238,11 @@ endi
print ============== step14: stop and drop dnode4/dnode5, then remove data dir of dnode4/dnode5 print ============== step14: stop and drop dnode4/dnode5, then remove data dir of dnode4/dnode5
system sh/exec.sh -n dnode4 -s stop -x SIGINT system sh/exec.sh -n dnode4 -s stop -x SIGINT
system sh/exec.sh -n dnode5 -s stop -x SIGINT system sh/exec.sh -n dnode5 -s stop -x SIGINT
sleep 3000 sleep 20000
sql drop dnode $hostname4 sql drop dnode $hostname4
sql drop dnode $hostname5 sql drop dnode $hostname5
system rm -rf ../../../sim/dnode4/data system rm -rf ../../../sim/dnode4/data
system rm -rf ../../../sim/dnode5/data system rm -rf ../../../sim/dnode5/data
sleep 20000
print ============== step15: alter replica 1 print ============== step15: alter replica 1
sql alter database $db replica 1 sql alter database $db replica 1
...@@ -266,13 +262,13 @@ if $data04 != 2 then ...@@ -266,13 +262,13 @@ if $data04 != 2 then
return -1 return -1
endi endi
#print ============== step17: start dnode1 and add into cluster, then wait dnode1 ready print ============== step17: start dnode1 and add into cluster, then wait dnode1 ready
#system sh/cfg.sh -n dnode1 -c first -v $hostname2 system sh/cfg.sh -n dnode1 -c first -v $hostname2
#system sh/cfg.sh -n dnode1 -c second -v $hostname3 system sh/cfg.sh -n dnode1 -c second -v $hostname3
#
#system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
#sql create dnode $hostname1 sql create dnode $hostname1
#sleep 20000 sleep 20000
print ============== step18: alter replica 3 print ============== step18: alter replica 3
sql alter database $db replica 3 sql alter database $db replica 3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册