未验证 提交 ba055987 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2256 from taosdata/hotfix/test

[modify sim cases]
...@@ -51,7 +51,7 @@ system sh/exec.sh -n dnode2 -s start ...@@ -51,7 +51,7 @@ system sh/exec.sh -n dnode2 -s start
sql create dnode $hostname2 sql create dnode $hostname2
sleep 3000 sleep 3000
$totalTableNum = 10000 $totalTableNum = 10
$sleepTimer = 10000 $sleepTimer = 10000
$db = db $db = db
...@@ -192,7 +192,7 @@ if $data00 != $totalRows then ...@@ -192,7 +192,7 @@ if $data00 != $totalRows then
endi endi
print ============== step4: stop dnode2 for checking if sync success print ============== step4: stop dnode2 for checking if sync ok
system sh/exec.sh -n dnode2 -s stop system sh/exec.sh -n dnode2 -s stop
sleep $sleepTimer sleep $sleepTimer
......
...@@ -55,7 +55,7 @@ sql create dnode $hostname3 ...@@ -55,7 +55,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 1000 $totalTableNum = 10
$sleepTimer = 10000 $sleepTimer = 10000
$db = db $db = db
......
...@@ -173,7 +173,7 @@ if $rows != 3 then ...@@ -173,7 +173,7 @@ if $rows != 3 then
return -1 return -1
endi endi
print ============== step5: remove dnode4 director, then recreate dnode4 into cluster, result should success print ============== step5: remove dnode4 director, then recreate dnode4 into cluster, result should ok
system sh/exec.sh -n dnode4 -s stop system sh/exec.sh -n dnode4 -s stop
system rm -rf ../../../sim/dnode4 system rm -rf ../../../sim/dnode4
......
...@@ -55,7 +55,7 @@ sql create dnode $hostname3 ...@@ -55,7 +55,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
......
...@@ -55,7 +55,7 @@ sql create dnode $hostname3 ...@@ -55,7 +55,7 @@ sql create dnode $hostname3
#sql create dnode $hostname4 #sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
...@@ -177,7 +177,7 @@ if $data00 != $totalRows then ...@@ -177,7 +177,7 @@ if $data00 != $totalRows then
return -1 return -1
endi endi
print ============== step5: stop dnode2, and check if dnode3 sync success print ============== step5: stop dnode2, and check if dnode3 sync ok
system sh/exec.sh -n dnode2 -s stop -x SIGINT system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep $sleepTimer sleep $sleepTimer
wait_dnode2_offline_0: wait_dnode2_offline_0:
......
...@@ -55,7 +55,7 @@ sql create dnode $hostname3 ...@@ -55,7 +55,7 @@ sql create dnode $hostname3
#sql create dnode $hostname4 #sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
...@@ -105,7 +105,7 @@ if $data00 != $totalRows then ...@@ -105,7 +105,7 @@ if $data00 != $totalRows then
return -1 return -1
endi endi
print ============== step5: stop dnode2, and check if dnode3 sync success print ============== step5: stop dnode2, and check if dnode3 sync ok
system sh/exec.sh -n dnode2 -s stop -x SIGINT system sh/exec.sh -n dnode2 -s stop -x SIGINT
sleep $sleepTimer sleep $sleepTimer
wait_dnode2_offline_0: wait_dnode2_offline_0:
......
...@@ -55,7 +55,7 @@ sql create dnode $hostname3 ...@@ -55,7 +55,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
......
...@@ -55,7 +55,7 @@ sql create dnode $hostname3 ...@@ -55,7 +55,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
...@@ -152,7 +152,7 @@ print ============== step4: restart dnode2, then create database with replica 2, ...@@ -152,7 +152,7 @@ print ============== step4: restart dnode2, then create database with replica 2,
system sh/exec.sh -n dnode2 -s start system sh/exec.sh -n dnode2 -s start
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db1 $db = db1
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname2 ...@@ -56,7 +56,7 @@ sql create dnode $hostname2
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
......
...@@ -67,7 +67,7 @@ sql use $db ...@@ -67,7 +67,7 @@ sql use $db
# create table , insert data # create table , insert data
$stb = stb $stb = stb
sql create table $stb (ts timestamp, c1 int, c2 int) tags(t1 int) sql create table $stb (ts timestamp, c1 int, c2 int) tags(t0 int, t1 int)
$rowNum = 500 $rowNum = 500
$tblNum = $totalTableNum $tblNum = $totalTableNum
$totalRows = 0 $totalRows = 0
...@@ -77,7 +77,7 @@ $tsEnd = 0 ...@@ -77,7 +77,7 @@ $tsEnd = 0
$i = 0 $i = 0
while $i < $tblNum while $i < $tblNum
$tb = tb . $i $tb = tb . $i
sql create table $tb using $stb tags( $i ) sql create table $tb using $stb tags( $i , $i )
$x = 0 $x = 0
while $x < $rowNum while $x < $rowNum
...@@ -164,7 +164,7 @@ $totalRows = 0 ...@@ -164,7 +164,7 @@ $totalRows = 0
$i = 0 $i = 0
while $i < $tblNum while $i < $tblNum
$tb = tb . $i $tb = tb . $i
sql create table $tb using $stb tags( $i , $i ) sql create table $tb using $stb tags( $i , $i , $i )
$x = 0 $x = 0
while $x < $rowNum while $x < $rowNum
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname2 ...@@ -56,7 +56,7 @@ sql create dnode $hostname2
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$maxTables = $totalTableNum * 2 $maxTables = $totalTableNum * 2
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname2 ...@@ -56,7 +56,7 @@ sql create dnode $hostname2
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname2 ...@@ -56,7 +56,7 @@ sql create dnode $hostname2
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
...@@ -146,14 +146,14 @@ endi ...@@ -146,14 +146,14 @@ endi
print ============== step4: drop some tables print ============== step4: drop some tables
$i = 1 $i = 1
$dropTblNum = 21 $dropTblNum = 6
while $i < $dropTblNum while $i < $dropTblNum
$tb = tb . $i $tb = tb . $i
sql drop table if exists $tb sql drop table if exists $tb
$i = $i + 1 $i = $i + 1
endw endw
$tblNum = $tblNum - 20 $tblNum = $tblNum - 5
print ============== step5: restart dnode4, waiting dnode4 synced print ============== step5: restart dnode4, waiting dnode4 synced
system sh/exec.sh -n dnode4 -s start system sh/exec.sh -n dnode4 -s start
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname3 ...@@ -56,7 +56,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
......
...@@ -67,7 +67,7 @@ sql use $db ...@@ -67,7 +67,7 @@ sql use $db
# create table , insert data # create table , insert data
$stb = stb $stb = stb
sql create table $stb (ts timestamp, c1 int, c2 int) tags(t1 int) sql create table $stb (ts timestamp, c1 int, c2 int) tags(t0 int, t1 int)
$rowNum = 500 $rowNum = 500
$tblNum = $totalTableNum $tblNum = $totalTableNum
$totalRows = 0 $totalRows = 0
...@@ -77,7 +77,7 @@ $tsEnd = 0 ...@@ -77,7 +77,7 @@ $tsEnd = 0
$i = 0 $i = 0
while $i < $tblNum while $i < $tblNum
$tb = tb . $i $tb = tb . $i
sql create table $tb using $stb tags( $i ) sql create table $tb using $stb tags( $i , $i )
$x = 0 $x = 0
while $x < $rowNum while $x < $rowNum
...@@ -164,7 +164,7 @@ $totalRows = 0 ...@@ -164,7 +164,7 @@ $totalRows = 0
$i = 0 $i = 0
while $i < $tblNum while $i < $tblNum
$tb = tb . $i $tb = tb . $i
sql create table $tb using $stb tags( $i , $i ) sql create table $tb using $stb tags( $i , $i , $i )
$x = 0 $x = 0
while $x < $rowNum while $x < $rowNum
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname3 ...@@ -56,7 +56,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$maxTables = $totalTableNum * 2 $maxTables = $totalTableNum * 2
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname3 ...@@ -56,7 +56,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
......
...@@ -56,7 +56,7 @@ sql create dnode $hostname3 ...@@ -56,7 +56,7 @@ sql create dnode $hostname3
sql create dnode $hostname4 sql create dnode $hostname4
sleep 3000 sleep 3000
$totalTableNum = 100 $totalTableNum = 10
$sleepTimer = 3000 $sleepTimer = 3000
$db = db $db = db
...@@ -146,14 +146,14 @@ endi ...@@ -146,14 +146,14 @@ endi
print ============== step4: drop some tables print ============== step4: drop some tables
$i = 1 $i = 1
$dropTblNum = 21 $dropTblNum = 6
while $i < $dropTblNum while $i < $dropTblNum
$tb = tb . $i $tb = tb . $i
sql drop table if exists $tb sql drop table if exists $tb
$i = $i + 1 $i = $i + 1
endw endw
$tblNum = $tblNum - 20 $tblNum = $tblNum - 5
print ============== step5: restart dnode4, waiting dnode4 synced print ============== step5: restart dnode4, waiting dnode4 synced
system sh/exec.sh -n dnode4 -s start system sh/exec.sh -n dnode4 -s start
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册