fix test case
This commit is contained in:
parent
afdb0242cc
commit
31872611bd
|
@ -14,7 +14,7 @@ print ========== cached_schema_after_alter.sim
|
|||
|
||||
sql drop database $db -x step1
|
||||
step1:
|
||||
sql create database $db
|
||||
sql create database $db
|
||||
print ====== create tables
|
||||
sql use $db
|
||||
|
||||
|
@ -32,10 +32,10 @@ if $rows != 1 then
|
|||
endi
|
||||
if $data01 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data02 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
sql select * from $tb2
|
||||
if $rows != 1 then
|
||||
|
@ -43,10 +43,10 @@ if $rows != 1 then
|
|||
endi
|
||||
if $data01 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data02 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
print ================== restart server to commit data into disk
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
@ -61,10 +61,10 @@ if $rows != 1 then
|
|||
endi
|
||||
if $data01 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data02 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
sql select * from $tb2
|
||||
print select * from $tb2 ==> $data00 $data01 $data02
|
||||
|
@ -73,10 +73,10 @@ if $rows != 1 then
|
|||
endi
|
||||
if $data01 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data02 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
$ts = $ts0 + $delta
|
||||
sql insert into $tb2 values ( $ts , 2, 2)
|
||||
|
@ -86,16 +86,16 @@ if $rows != 2 then
|
|||
endi
|
||||
if $data01 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data02 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data11 != 2 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data12 != 2 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
sql select * from $tb2 order by ts asc
|
||||
if $rows != 2 then
|
||||
|
@ -103,15 +103,15 @@ if $rows != 2 then
|
|||
endi
|
||||
if $data01 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data02 != 1 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data11 != 2 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
if $data12 != 2 then
|
||||
return -1
|
||||
endi
|
||||
endi
|
||||
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
|
@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
|
|||
system sh/exec.sh -n dnode1 -s start
|
||||
sql connect
|
||||
|
||||
print ======== step1
|
||||
print ======== step1
|
||||
sql alter dnode 1 'resetlog'
|
||||
sql alter dnode 1 'monitor' '1'
|
||||
sql alter dnode 1 'monitor' '0'
|
||||
|
@ -65,4 +65,4 @@ sql alter dnode 1 balance "vnode:2-dnode:1" -x step4
|
|||
step4:
|
||||
|
||||
print ======= over
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
|
@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1
|
|||
system sh/exec.sh -n dnode1 -s start
|
||||
sql connect
|
||||
|
||||
print ======== step1
|
||||
print ======== step1
|
||||
sql create database d1
|
||||
sql use d1
|
||||
sql create table tb (ts timestamp, a int)
|
||||
|
|
Loading…
Reference in New Issue