[modify]
This commit is contained in:
parent
a08c7405c0
commit
5539b262f1
|
@ -69,14 +69,13 @@ sql use $db
|
|||
|
||||
print ============== step3: create stable 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(16))
|
||||
sql create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(8))
|
||||
|
||||
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_1.sim
|
||||
run_back unique/cluster/client1_2.sim
|
||||
run_back unique/cluster/client1_3.sim
|
||||
#run_back unique/cluster/client1_1.sim
|
||||
#run_back unique/cluster/client1_2.sim
|
||||
#run_back unique/cluster/client1_3.sim
|
||||
#run_back unique/cluster/client2_0.sim
|
||||
#run_back unique/cluster/client2_1.sim
|
||||
#run_back unique/cluster/client2_2.sim
|
||||
|
@ -119,16 +118,14 @@ sql create dnode $hostname5
|
|||
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
|
||||
sleep 10000
|
||||
#sql drop dnode $hostname1
|
||||
#sleep 5000
|
||||
#system rm -rf ../../../sim/dnode1/data
|
||||
#sleep 20000
|
||||
print ============== step6-1: restart dnode1
|
||||
system sh/exec.sh -n dnode1 -s start
|
||||
sleep 10000
|
||||
sleep 5000
|
||||
sql drop dnode $hostname1
|
||||
sleep 5000
|
||||
|
||||
system rm -rf ../../../sim/dnode1/data
|
||||
sleep 20000
|
||||
|
||||
sql show mnodes
|
||||
print show mnodes
|
||||
|
@ -241,12 +238,11 @@ endi
|
|||
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 dnode5 -s stop -x SIGINT
|
||||
sleep 3000
|
||||
sleep 20000
|
||||
sql drop dnode $hostname4
|
||||
sql drop dnode $hostname5
|
||||
system rm -rf ../../../sim/dnode4/data
|
||||
system rm -rf ../../../sim/dnode5/data
|
||||
sleep 20000
|
||||
|
||||
print ============== step15: alter replica 1
|
||||
sql alter database $db replica 1
|
||||
|
@ -266,13 +262,13 @@ if $data04 != 2 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
#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 second -v $hostname3
|
||||
#
|
||||
#system sh/exec.sh -n dnode1 -s start
|
||||
#sql create dnode $hostname1
|
||||
#sleep 20000
|
||||
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 second -v $hostname3
|
||||
|
||||
system sh/exec.sh -n dnode1 -s start
|
||||
sql create dnode $hostname1
|
||||
sleep 20000
|
||||
|
||||
print ============== step18: alter replica 3
|
||||
sql alter database $db replica 3
|
||||
|
|
Loading…
Reference in New Issue