提交 31872611 编写于 作者: G Ganlin Zhao

fix test case

上级 afdb0242
...@@ -14,7 +14,7 @@ print ========== cached_schema_after_alter.sim ...@@ -14,7 +14,7 @@ print ========== cached_schema_after_alter.sim
sql drop database $db -x step1 sql drop database $db -x step1
step1: step1:
sql create database $db sql create database $db
print ====== create tables print ====== create tables
sql use $db sql use $db
...@@ -32,10 +32,10 @@ if $rows != 1 then ...@@ -32,10 +32,10 @@ if $rows != 1 then
endi endi
if $data01 != 1 then if $data01 != 1 then
return -1 return -1
endi endi
if $data02 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
sql select * from $tb2 sql select * from $tb2
if $rows != 1 then if $rows != 1 then
...@@ -43,10 +43,10 @@ if $rows != 1 then ...@@ -43,10 +43,10 @@ if $rows != 1 then
endi endi
if $data01 != 1 then if $data01 != 1 then
return -1 return -1
endi endi
if $data02 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
print ================== restart server to commit data into disk print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
...@@ -61,10 +61,10 @@ if $rows != 1 then ...@@ -61,10 +61,10 @@ if $rows != 1 then
endi endi
if $data01 != 1 then if $data01 != 1 then
return -1 return -1
endi endi
if $data02 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
sql select * from $tb2 sql select * from $tb2
print select * from $tb2 ==> $data00 $data01 $data02 print select * from $tb2 ==> $data00 $data01 $data02
...@@ -73,10 +73,10 @@ if $rows != 1 then ...@@ -73,10 +73,10 @@ if $rows != 1 then
endi endi
if $data01 != 1 then if $data01 != 1 then
return -1 return -1
endi endi
if $data02 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
$ts = $ts0 + $delta $ts = $ts0 + $delta
sql insert into $tb2 values ( $ts , 2, 2) sql insert into $tb2 values ( $ts , 2, 2)
...@@ -86,16 +86,16 @@ if $rows != 2 then ...@@ -86,16 +86,16 @@ if $rows != 2 then
endi endi
if $data01 != 1 then if $data01 != 1 then
return -1 return -1
endi endi
if $data02 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data11 != 2 then
return -1 return -1
endi endi
if $data12 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
sql select * from $tb2 order by ts asc sql select * from $tb2 order by ts asc
if $rows != 2 then if $rows != 2 then
...@@ -103,15 +103,15 @@ if $rows != 2 then ...@@ -103,15 +103,15 @@ if $rows != 2 then
endi endi
if $data01 != 1 then if $data01 != 1 then
return -1 return -1
endi endi
if $data02 != 1 then if $data02 != 1 then
return -1 return -1
endi endi
if $data11 != 2 then if $data11 != 2 then
return -1 return -1
endi endi
if $data12 != 2 then if $data12 != 2 then
return -1 return -1
endi endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
...@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -3,7 +3,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
sql connect sql connect
print ======== step1 print ======== step1
sql alter dnode 1 'resetlog' sql alter dnode 1 'resetlog'
sql alter dnode 1 'monitor' '1' sql alter dnode 1 'monitor' '1'
sql alter dnode 1 'monitor' '0' sql alter dnode 1 'monitor' '0'
...@@ -65,4 +65,4 @@ sql alter dnode 1 balance "vnode:2-dnode:1" -x step4 ...@@ -65,4 +65,4 @@ sql alter dnode 1 balance "vnode:2-dnode:1" -x step4
step4: step4:
print ======= over print ======= over
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
...@@ -3,7 +3,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -3,7 +3,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
sql connect sql connect
print ======== step1 print ======== step1
sql create database d1 sql create database d1
sql use d1 sql use d1
sql create table tb (ts timestamp, a int) sql create table tb (ts timestamp, a int)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册