This commit is contained in:
Shengliang Guan 2020-06-10 12:16:51 +08:00
parent d20c24f9b3
commit c3cc71c030
53 changed files with 89 additions and 84 deletions

View File

@ -53,7 +53,7 @@ endi
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -375,9 +375,9 @@ endi
print ======== step9
print ======== step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql use d2
sql describe tb

View File

@ -326,9 +326,9 @@ endi
print ======== step9
print ======== step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql use d1
sql describe tb

View File

@ -57,7 +57,8 @@ system sh/exec.sh -n dnode1 -s start
print =============== step3
print ==> sleep 8 seconds to renew cache
sleep 8000
sql reset query cache
sleep 1000
print =============== step4
sql create database $db

View File

@ -89,9 +89,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 4000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
print =============== step5

View File

@ -157,9 +157,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 2000
sleep 5000
print =============== step5

View File

@ -129,9 +129,9 @@ endi
print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 2000
sleep 5000
print ============== step5

View File

@ -89,7 +89,7 @@ print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
print =============== step5

View File

@ -84,7 +84,7 @@ print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
print =============== step5

View File

@ -84,7 +84,7 @@ print =============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
print =============== step5

View File

@ -211,10 +211,10 @@ endi
print ============================ step7
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sleep 3000
sleep 5000
sql reset query cache
sleep 1000
@ -334,10 +334,10 @@ endi
print ============================ step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sleep 3000
sleep 5000
sql reset query cache
sleep 1000

View File

@ -143,9 +143,9 @@ endi
print ============================ step7
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql reset query cache
sleep 1000
@ -245,9 +245,9 @@ endi
print ============================ step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql reset query cache
sleep 1000

View File

@ -204,9 +204,9 @@ endi
print ============================ step7
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql reset query cache
sleep 1000
@ -325,9 +325,9 @@ endi
print ============================ step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql reset query cache
sleep 1000

View File

@ -70,9 +70,9 @@ endi
print ============================ step3
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 2
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql create table db.t100 using db.st tags(0)
sql create table db.t101 using db.st tags(1)
@ -132,9 +132,9 @@ print ============================ step5
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 3
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql create table db.t200 using db.st tags(0)
sql create table db.t201 using db.st tags(1)

View File

@ -50,9 +50,9 @@ endi
print ======== step2 stop dnode
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode2 -s start
sleep 3000
sleep 5000
sql select * from tb
print ===> rows $rows
@ -112,9 +112,9 @@ endi
print ======== step5 stop dnode
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode2 -s start
sleep 3000
sleep 5000
sql select * from tb
print ===> rows $rows

View File

@ -43,7 +43,7 @@ endi
print ======= step3
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
$x = 0

View File

@ -70,7 +70,7 @@ endi
print ========== step3
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 500
sleep 5000
sql drop dnode $hostname2
sleep 2000
@ -101,4 +101,5 @@ endi
sql_error select * from db.t1
sql_error select * from db.t9
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT

View File

@ -93,7 +93,7 @@ endi
print ================== dnode restart
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 5000
@ -162,7 +162,7 @@ endi
print ================= step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 5000

View File

@ -43,7 +43,7 @@ print ====== tables created
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
@ -69,7 +69,7 @@ endw
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 4000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -208,7 +208,7 @@ endi
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -81,7 +81,7 @@ endw
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
print ================== server restart completed

View File

@ -75,7 +75,7 @@ run general/parser/first_last_query.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -60,7 +60,7 @@ run general/parser/interp_test.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -61,7 +61,7 @@ run general/parser/lastrow_query.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -61,7 +61,7 @@ run general/parser/limit_stb.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -61,7 +61,7 @@ run general/parser/limit1_stb.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -61,7 +61,7 @@ run general/parser/limit1_stb.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -71,7 +71,7 @@ print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
return
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -36,7 +36,7 @@ sql insert into $tb values ('2018-09-17 09:00:00.030', 3)
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -31,7 +31,7 @@ run general/parser/single_row_in_tb_query.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -98,7 +98,7 @@ run general/parser/slimit_query.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -57,7 +57,7 @@ run general/parser/slimit1_query.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -170,7 +170,7 @@ endi
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed
sql connect

View File

@ -68,7 +68,7 @@ run general/parser/tbnameIn_query.sim
print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
system sh/exec.sh -n dnode1 -s start
print ================== server restart completed

View File

@ -58,7 +58,7 @@ endi
sleep 1000
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 6000

View File

@ -213,11 +213,4 @@ if $rows != 0 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -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 dnode6 -s stop -x SIGINT
system sh/exec.sh -n dnode7 -s stop -x SIGINT
system sh/exec.sh -n dnode8 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT

View File

@ -824,7 +824,7 @@ endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
print =============== step1
$i = 0

View File

@ -171,6 +171,7 @@ if $data2_3 != 2 then
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
sql reset query cache
sleep 1000
@ -227,6 +228,7 @@ if $data2_3 != null then
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
sleep 5000
sql reset query cache
sleep 1000

View File

@ -163,7 +163,7 @@ print dnode4 ==> $dnode4Role
print ============================== step5
print ========= add dnode2
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode3 -s start
sql create dnode $hostname3
sleep 9000

View File

@ -381,6 +381,7 @@ if $dnode7Vnodes != 3 then
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
print ============================== step11
print ========= add db4
@ -429,6 +430,7 @@ if $dnode7Vnodes != 4 then
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 5000
print ============================== step13
sql reset query cache

View File

@ -50,7 +50,7 @@ print ======== step2 stop dnode
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode2 -s start
sleep 3000
sleep 5000
sql select * from tb order by ts desc
print ===> rows $rows
@ -101,7 +101,7 @@ print ======== step5 stop dnode
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
system sh/exec.sh -n dnode2 -s start
sleep 3000
sleep 5000
sql select * from tb
print ===> rows $rows

View File

@ -69,7 +69,7 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
sleep 1000
sleep 5000
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start

View File

@ -171,7 +171,7 @@ print ========= step6
system sh/exec.sh -n dnode2 -s start
sleep 5000
system sh/exec.sh -n dnode3 -s stop -x SIGINT
sleep 3000
sleep 5000
sql insert into d1.t1 values(1589529000014, 4)
sql insert into d2.t2 values(1589529000024, 4)
@ -206,7 +206,7 @@ print ========= step7
system sh/exec.sh -n dnode3 -s start
sleep 5000
system sh/exec.sh -n dnode4 -s stop -x SIGINT
sleep 3000
sleep 5000
sql insert into d1.t1 values(1589529000015, 5)
sql insert into d2.t2 values(1589529000025, 5)
@ -237,7 +237,7 @@ print ========= step8
system sh/exec.sh -n dnode4 -s start
sleep 5000
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 3000
sleep 5000
sql insert into d1.t1 values(1589529000016, 6)
sql insert into d2.t2 values(1589529000026, 6)

View File

@ -118,7 +118,7 @@ endi
print ======== step9 stop dnode2
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 3000
sleep 5000
sql insert into d5.t5 values(now, 3)
sql insert into d2.t2 values(now, 3)

View File

@ -84,6 +84,7 @@ if $data2_3 != 2 then
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
print ========== step3
sql create dnode $hostname4
@ -210,6 +211,7 @@ if $data2_5 != 3 then
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
sql reset query cache
sleep 1000

View File

@ -99,7 +99,7 @@ if $data2_4 != 2 then
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
print ========== step
sql create dnode $hostname5
system sh/exec.sh -n dnode5 -s start
@ -239,6 +239,7 @@ if $data2_5 != 3 then
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
sleep 5000
sql reset query cache
sleep 1000

View File

@ -140,6 +140,7 @@ if $data2_3 != 3 then
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
sql reset query cache
sleep 1000

View File

@ -110,6 +110,7 @@ if $data2_2 != null then
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep 5000
print ========== step5
sql create dnode $hostname4

View File

@ -76,7 +76,7 @@ endi
print ========== step3
system sh/exec.sh -n dnode2 -s stop -x SIGINT
sql drop dnode $hostname2
sleep 4000
sleep 5000
sql show dnodes
print dnode1 openVnodes $data2_1

View File

@ -101,7 +101,7 @@ endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
print ========== step5
sleep 2000
sleep 5000
sql create dnode $hostname3
system sh/exec.sh -n dnode3 -s start
@ -222,7 +222,8 @@ if $data2_4 != 4 then
goto show9
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop
sleep 5000
print ========== step10
sql select * from d1.t1 order by t desc

View File

@ -47,7 +47,7 @@ print should not drop master
print ============== step4
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 2000
sleep 5000
sql_error show mnodes
print error of no master

View File

@ -368,9 +368,9 @@ endi
print ======== step9
print ======== step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql use d2
sql describe tb

View File

@ -319,9 +319,9 @@ endi
print ======== step9
print ======== step10
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000
sleep 5000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sleep 5000
sql use d1
sql describe tb