test: restore some 2.0 case
This commit is contained in:
parent
7d1c2fdbe5
commit
9b5f662275
|
@ -83,10 +83,6 @@ while $i < 10
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print ==> sleep 1 seconds to renew cache
|
|
||||||
sql reset query cache
|
|
||||||
sleep 1000
|
|
||||||
|
|
||||||
print =============== step5
|
print =============== step5
|
||||||
sql select * from $tb order by ts desc
|
sql select * from $tb order by ts desc
|
||||||
print ===>rows $rows, data $data01
|
print ===>rows $rows, data $data01
|
||||||
|
|
|
@ -48,9 +48,7 @@ system sh/deploy.sh -n dnode1 -i 1
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
print ==> sleep 1 seconds to renew cache
|
|
||||||
sql reset query cache
|
sql reset query cache
|
||||||
sleep 1000
|
|
||||||
|
|
||||||
print =============== step4
|
print =============== step4
|
||||||
sql create database $db
|
sql create database $db
|
||||||
|
|
|
@ -32,9 +32,7 @@ system sh/deploy.sh -n dnode1 -i 1
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
print ==> sleep 1 seconds to renew cache
|
|
||||||
sql reset query cache
|
sql reset query cache
|
||||||
sleep 1000
|
|
||||||
|
|
||||||
print =============== step4
|
print =============== step4
|
||||||
sql create database $db
|
sql create database $db
|
||||||
|
|
|
@ -57,15 +57,7 @@ $tb = $tbPrefix . $i
|
||||||
|
|
||||||
sql create database $db
|
sql create database $db
|
||||||
sql use $db
|
sql use $db
|
||||||
|
sql create table $tb (ts timestamp, b bool, t tinyint, s smallint, i int, big bigint, f float, d double, str binary(256))
|
||||||
$x = 0
|
|
||||||
step3:
|
|
||||||
$x = $x + 1
|
|
||||||
sleep 1000
|
|
||||||
if $x == 20 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
sql create table $tb (ts timestamp, b bool, t tinyint, s smallint, i int, big bigint, f float, d double, str binary(256)) -x step3
|
|
||||||
|
|
||||||
$count = 0
|
$count = 0
|
||||||
while $count < $N
|
while $count < $N
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -47,8 +47,6 @@ while $x < $rowNum
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 0
|
$i = 0
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -38,8 +38,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -46,7 +46,6 @@ while $i < 10
|
||||||
endw
|
endw
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
sleep 100
|
|
||||||
sql select * from $tb
|
sql select * from $tb
|
||||||
if $rows != $rowNum then
|
if $rows != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -41,8 +41,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
|
@ -37,8 +37,6 @@ while $i < $tbNum
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
sleep 100
|
|
||||||
|
|
||||||
print =============== step2
|
print =============== step2
|
||||||
$i = 1
|
$i = 1
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
|
|
Loading…
Reference in New Issue