test: case for mnode sync
This commit is contained in:
parent
84b3de325a
commit
babefefa64
|
@ -119,9 +119,9 @@ if $data(2)[4] != ready then
|
|||
endi
|
||||
|
||||
print =============== insert data
|
||||
#sql create table db.stb (ts timestamp, c1 int, c2 binary(4)) tags(t1 int, t2 float, t3 binary(16)) comment "abd"
|
||||
#sql create table db.ctb using db.stb tags(101, 102, "103")
|
||||
#sql insert into db.ctb values(now, 1, "2")
|
||||
sql create table db.stb (ts timestamp, c1 int, c2 binary(4)) tags(t1 int, t2 float, t3 binary(16)) comment "abd"
|
||||
sql create table db.ctb using db.stb tags(101, 102, "103")
|
||||
sql insert into db.ctb values(now, 1, "2")
|
||||
|
||||
system sh/exec.sh -n dnode1 -s stop
|
||||
system sh/exec.sh -n dnode2 -s stop
|
|
@ -15,7 +15,7 @@ $x = 0
|
|||
step1:
|
||||
$x = $x + 1
|
||||
sleep 1000
|
||||
if $x == 20 then
|
||||
if $x == 50 then
|
||||
return -1
|
||||
endi
|
||||
sql show dnodes -x step1
|
||||
|
@ -37,7 +37,7 @@ $x = 0
|
|||
step2:
|
||||
$x = $x + 1
|
||||
sleep 1000
|
||||
if $x == 20 then
|
||||
if $x == 50 then
|
||||
return -1
|
||||
endi
|
||||
sql show mnodes -x step2
|
||||
|
@ -68,7 +68,7 @@ $x = 0
|
|||
step4:
|
||||
$x = $x + 1
|
||||
sleep 1000
|
||||
if $x == 20 then
|
||||
if $x == 50 then
|
||||
return -1
|
||||
endi
|
||||
sql show mnodes -x step4
|
||||
|
@ -98,7 +98,7 @@ $x = 0
|
|||
step5:
|
||||
$x = $x + 1
|
||||
sleep 1000
|
||||
if $x == 20 then
|
||||
if $x == 50 then
|
||||
return -1
|
||||
endi
|
||||
sql show mnodes -x step5
|
||||
|
@ -119,7 +119,7 @@ $x = 0
|
|||
step6:
|
||||
$x = $x + 1
|
||||
sleep 1000
|
||||
if $x == 20 then
|
||||
if $x == 50 then
|
||||
return -1
|
||||
endi
|
||||
sql show mnodes -x step6
|
||||
|
|
Loading…
Reference in New Issue