提交 44df51f9 编写于 作者: X Xiaoyu Wang

enh: show command optimize

上级 7176bb91
......@@ -24,11 +24,11 @@ class TDTestCase:
tdSql.init(conn.cursor(), logSql)
def run(self):
tdSql.query("show users")
tdSql.query("select * from information_schema.ins_users")
rows = tdSql.queryRows
tdSql.execute("create user test PASS 'test' ")
tdSql.query("show users")
tdSql.query("select * from information_schema.ins_users")
tdSql.checkRows(rows + 1)
tdSql.error("create user tdenginetdenginetdengine PASS 'test' ")
......
......@@ -23,7 +23,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> rows: $rows
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
......@@ -57,7 +57,7 @@ if $data(db)[4] != 3 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[2] != 1 then
return -1
endi
......@@ -69,7 +69,7 @@ if $data(4)[2] != 1 then
endi
# vnodes
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[2] != 1 then
return -1
endi
......
......@@ -14,7 +14,7 @@ system sh/cfg.sh -n dnode1 -c monitorComp -v 1
system sh/exec.sh -n dnode1 -s start
sql connect
print =============== show dnodes
print =============== select * from information_schema.ins_dnodes
sql create database db vgroups 2;
sql use db;
sql create table db.stb (ts timestamp, c1 int, c2 binary(4)) tags(t1 int, t2 binary(16)) comment "abd";
......
......@@ -17,7 +17,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> rows: $rows
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
......
......@@ -114,7 +114,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 8 then
sleep 2000
goto wait_dnode_created
......@@ -164,7 +164,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print $data0_1 $data1_1 $data2_1 $data3_1 $data4_1
print $data0_2 $data1_2 $data2_2 $data3_2 $data4_2
print $data0_3 $data1_3 $data2_3 $data3_3 $data4_3
......
......@@ -119,7 +119,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_offline
......@@ -187,7 +187,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_ready
......
......@@ -16,7 +16,7 @@ system sh/exec.sh -n dnode2 -s start
sleep 2000
wait_dnode2_ready:
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode2_ready
......
......@@ -101,7 +101,7 @@ if $data00 != $totalRows then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
return -1
endi
......@@ -119,7 +119,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode4_dropped
......@@ -153,7 +153,7 @@ endi
print ============== step4: restart dnode4, but there no dnode4 in cluster
system sh/exec.sh -n dnode4 -s start
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
return -1
endi
......
......@@ -102,7 +102,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode3_offline_0
......@@ -169,7 +169,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode3_reready
......@@ -236,7 +236,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_offline
......@@ -281,7 +281,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_reready
......
......@@ -104,7 +104,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -171,7 +171,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_reready
......@@ -238,7 +238,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode23_offline
......@@ -282,7 +282,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode23_reready
......
......@@ -140,7 +140,7 @@ if $data00 != $totalRows then
endi
#sleep 2000
#sql show dnodes
#sql select * from information_schema.ins_dnodes
#print $data0_1 $data1_1 $data2_1 $data3_1 $data4_1
#print $data0_2 $data1_2 $data2_2 $data3_2 $data4_2
#print $data0_3 $data1_3 $data2_3 $data3_3 $data4_3
......@@ -173,7 +173,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_drop
......@@ -227,7 +227,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print rows: $rows
if $rows != 4 then
sleep 2000
......@@ -279,7 +279,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode5
......
......@@ -59,7 +59,7 @@ step1:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 $data4_1
print dnode2 $data4_2
......@@ -140,7 +140,7 @@ step2:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 $data4_1
print dnode2 $data4_2
print dnode3 $data4_3
......@@ -229,7 +229,7 @@ step6:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 $data4_1
print dnode2 $data4_2
print dnode3 $data4_3
......@@ -320,7 +320,7 @@ step9:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
goto step9
endi
......
......@@ -106,7 +106,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_dropped
......
......@@ -102,7 +102,7 @@ if $data00 != $totalRows then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
return -1
endi
......@@ -118,7 +118,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode4_dropped
......@@ -153,7 +153,7 @@ endi
print ============== step4: restart dnode4, but there are not dnode4 in cluster
system sh/exec.sh -n dnode4 -s start
sleep 2000
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
return -1
endi
......@@ -161,7 +161,7 @@ endi
print ============== step5: recreate dnode4 into cluster, result should fail
sql create dnode $hostname4
sleep 12000
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
return -1
endi
......@@ -191,7 +191,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -94,7 +94,7 @@ if $data00 != $totalRows then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print $data0_1 $data1_1 $data2_1 $data3_1 $data4_1
print $data0_2 $data1_2 $data2_2 $data3_2 $data4_2
print $data0_3 $data1_3 $data2_3 $data3_3 $data4_3
......@@ -109,7 +109,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -175,7 +175,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_reready
......@@ -244,7 +244,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode23_offline
......
......@@ -106,7 +106,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_offline_0
......@@ -197,7 +197,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_reready
......@@ -275,7 +275,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode2_offline_0
......@@ -334,7 +334,7 @@ endi
print ============== step6: stop dnode3 for falling disck
system sh/exec.sh -n dnode3 -s stop -x SIGINT
sleep $sleepTimer
sql show dnodes
sql select * from information_schema.ins_dnodes
print $data0_1 $data1_1 $data2_1 $data3_1 $data4_1
print $data0_2 $data1_2 $data2_2 $data3_2 $data4_2
print $data0_3 $data1_3 $data2_3 $data3_3 $data4_3
......@@ -356,7 +356,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode23_reready_2
......
......@@ -110,8 +110,8 @@ if $data00 != $totalRows then
return -1
endi
print show dnodes
sql show dnodes
print select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes
print $data0_1 $data1_1 $data2_1 $data3_1 $data4_1
print $data0_2 $data1_2 $data2_2 $data3_2 $data4_2
print $data0_3 $data1_3 $data2_3 $data3_3 $data4_3
......@@ -158,7 +158,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode2_offline_0
......@@ -225,7 +225,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_offline_0
......@@ -292,7 +292,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_reready
......
......@@ -120,7 +120,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode2_offline_0
......@@ -187,7 +187,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_offline_0
......@@ -254,7 +254,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_reready
......
......@@ -105,7 +105,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -166,7 +166,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_reready
......@@ -226,7 +226,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode3_offline
......@@ -266,7 +266,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode3_reready
......@@ -342,7 +342,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode2_offline
......@@ -382,7 +382,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode2_reready
......
......@@ -106,7 +106,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode3_offline_0
......@@ -197,7 +197,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode3_reready
......@@ -275,7 +275,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_offline_0
......@@ -334,7 +334,7 @@ endi
print ============== step6: stop dnode3 for falling disck
system sh/exec.sh -n dnode3 -s stop -x SIGINT
sleep $sleepTimer
sql show dnodes
sql select * from information_schema.ins_dnodes
print $data0_1 $data1_1 $data2_1 $data3_1 $data4_1
print $data0_2 $data1_2 $data2_2 $data3_2 $data4_2
print $data0_3 $data1_3 $data2_3 $data3_3 $data4_3
......@@ -356,7 +356,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode23_reready_2
......
......@@ -109,7 +109,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -218,7 +218,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode3_offline_0
......
......@@ -131,7 +131,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_offline
......@@ -189,7 +189,7 @@ if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_ready
......
......@@ -107,7 +107,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -173,7 +173,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -203,7 +203,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -189,7 +189,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -175,7 +175,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -177,7 +177,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -203,7 +203,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -107,7 +107,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -190,7 +190,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -175,7 +175,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
......
......@@ -114,7 +114,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode2_ready
......@@ -160,7 +160,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode_ready
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -105,7 +105,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
......@@ -173,7 +173,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
......@@ -280,7 +280,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready_2
......@@ -403,7 +403,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready_3
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......
......@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
......
# scp -r root@114.116.252.220:/home/ubuntu/clusterSimCase unique/.
#taos> show dnodes;
#taos> select * from information_schema.ins_dnodes;
# id | end_point | vnodes | cores | status | role | create_time |
#==================================================================================================================
# 1 | ubuntu-OptiPlex-7060:7100 | 0 | 12 | ready | mnode | 2020-07-22 06:25:31.677 |
......
......@@ -5,8 +5,8 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
sql show dnodes;
print =============== select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes;
if $rows != 1 then
return -1
endi
......@@ -32,7 +32,7 @@ print =============== create dnodes
sql create dnode $hostname port 7200
sleep 2000
sql show dnodes;
sql select * from information_schema.ins_dnodes;
if $rows != 2 then
return -1
endi
......
......@@ -18,7 +18,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -20,7 +20,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -43,13 +43,13 @@ if $data(db)[4] != 1 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[2] != 1 then
return -1
endi
# vnodes
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[2] != 1 then
return -1
endi
......@@ -81,7 +81,7 @@ step3:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> rows: $rows
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
......
......@@ -22,7 +22,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> rows: $rows
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
......@@ -54,7 +54,7 @@ if $data(db)[4] != 3 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[2] != 1 then
return -1
endi
......@@ -66,7 +66,7 @@ if $data(4)[2] != 1 then
endi
# vnodes
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[2] != 1 then
return -1
endi
......
......@@ -136,8 +136,8 @@ if $rows != 4 then
return -1
endi
print =============== show dnodes
sql show dnodes
print =============== select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes
if $data00 != 1 then
return -1
......
......@@ -18,7 +18,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......
......@@ -17,7 +17,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -16,7 +16,7 @@ create1:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data4_2 != ready then
goto create1
endi
......
......@@ -20,7 +20,7 @@ sql insert into d1.t1 values(now+3s, 13)
sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
if $data(1)[2] != 1 then
return -1
......@@ -38,7 +38,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -52,7 +52,7 @@ if $data(2)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
if $data(1)[2] != 0 then
......@@ -71,7 +71,7 @@ sql insert into d2.t2 values(now+3s, 23)
sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
if $data(1)[2] != 0 then
......@@ -83,7 +83,7 @@ endi
print ========== step4
sql drop dnode 2
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
if $data(1)[2] != 2 then
......@@ -107,7 +107,7 @@ step5:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -121,7 +121,7 @@ if $data(3)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
if $data(1)[2] != 1 then
......@@ -140,7 +140,7 @@ sql insert into d3.t3 values(now+3s, 33)
sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
if $data(1)[2] != 1 then
......@@ -162,7 +162,7 @@ step7:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -188,7 +188,7 @@ sql insert into d4.t4 values(now+3s, 43)
sql insert into d4.t4 values(now+4s, 42)
sql insert into d4.t4 values(now+5s, 41)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
print dnode2 openVnodes $data(4)[2]
......@@ -204,7 +204,7 @@ endi
print ========== step9
sql drop dnode 3
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(4)[2]
if $data(1)[2] != 2 then
......
......@@ -27,7 +27,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -78,7 +78,7 @@ sql insert into d4.t4 values(now+4s, 42)
sql insert into d4.t4 values(now+5s, 41)
print ========== step2.1
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode3 openVnodes $data(3)[2]
......@@ -106,7 +106,7 @@ step3:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -132,7 +132,7 @@ if $data(5)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(2)[2]
print dnode3 openVnodes $data(3)[2]
......@@ -156,7 +156,7 @@ endi
print ========== step4
sql drop dnode 2
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
......@@ -178,7 +178,7 @@ system sh/exec.sh -n dnode2 -s stop -x SIGINT
print ========== step5
sql drop dnode 3
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
......
......@@ -31,7 +31,7 @@ step10:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -122,7 +122,7 @@ sql insert into d2.t2 values(now+3s, 23)
sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode3 openVnodes $data(3)[2]
......@@ -142,7 +142,7 @@ endi
print ========== step2
sql drop dnode 2
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode3 openVnodes $data(3)[2]
......@@ -174,7 +174,7 @@ step3:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -196,7 +196,7 @@ if $data(5)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
......@@ -223,7 +223,7 @@ sql insert into d3.t3 values(now+3s, 33)
sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
......@@ -253,7 +253,7 @@ step5:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -279,7 +279,7 @@ if $data(6)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
......@@ -303,7 +303,7 @@ endi
print ========== step6
sql drop dnode 3
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
......
......@@ -22,7 +22,7 @@ step1:
print ---> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ---> $data00 $data01 $data02 $data03 $data04 $data05
print ---> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -78,7 +78,7 @@ step3:
print ---> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ---> $data00 $data01 $data02 $data03 $data04 $data05
print ---> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......
......@@ -30,7 +30,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -199,7 +199,7 @@ step4:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -28,7 +28,7 @@ sql insert into d2.t2 values(now+3s, 23)
sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
if $data(1)[2] != 2 then
return -1
......@@ -48,7 +48,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -66,7 +66,7 @@ if $data(3)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode2 openVnodes $data(3)[2]
......@@ -89,7 +89,7 @@ sql insert into d3.t3 values(now+3s, 33)
sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode2 openVnodes $data(3)[2]
......@@ -115,7 +115,7 @@ step3:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -137,7 +137,7 @@ if $data(4)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode2 openVnodes $data(3)[2]
......@@ -157,7 +157,7 @@ endi
print ========== step5
sql drop dnode 2
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode2 openVnodes $data(3)[2]
......
......@@ -5,8 +5,8 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
sql show dnodes;
print =============== select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes;
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4] $data[0][5] $data[0][6]
if $rows != 1 then
return -1
......@@ -35,7 +35,7 @@ print =============== create dnodes
sql create dnode $hostname port 7200
sleep 2000
sql show dnodes;
sql select * from information_schema.ins_dnodes;
if $rows != 2 then
return -1
endi
......
......@@ -17,7 +17,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -37,7 +37,7 @@ print =============== step2 drop dnode 3
sql_error drop dnode 1
sql drop dnode 3
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -73,8 +73,8 @@ print =============== step4: drop dnode 2
sql_error drop dnode 1
sql drop dnode 2
print show dnodes;
sql show dnodes;
print select * from information_schema.ins_dnodes;
sql select * from information_schema.ins_dnodes;
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4]
print $data[1][0] $data[1][1] $data[1][2] $data[1][3] $data[1][4]
if $rows != 1 then
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -76,7 +76,7 @@ step4:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -95,8 +95,8 @@ endi
print =============== step3: drop dnode2
sql drop dnode 2
print show dnodes;
sql show dnodes;
print select * from information_schema.ins_dnodes;
sql select * from information_schema.ins_dnodes;
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4]
print $data[1][0] $data[1][1] $data[1][2] $data[1][3] $data[1][4]
if $rows != 2 then
......
......@@ -25,7 +25,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 5 then
......@@ -189,7 +189,7 @@ step4:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 5 then
......@@ -214,8 +214,8 @@ endi
print =============== step5: drop dnode2
sql drop dnode 2
print show dnodes;
sql show dnodes;
print select * from information_schema.ins_dnodes;
sql select * from information_schema.ins_dnodes;
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4]
print $data[1][0] $data[1][1] $data[1][2] $data[1][3] $data[1][4]
if $rows != 4 then
......
......@@ -16,7 +16,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -46,8 +46,8 @@ endi
print =============== step3: drop dnode 2
sql drop dnode 2
print show dnodes;
sql show dnodes;
print select * from information_schema.ins_dnodes;
sql select * from information_schema.ins_dnodes;
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4]
print $data[1][0] $data[1][1] $data[1][2] $data[1][3] $data[1][4]
if $rows != 1 then
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -72,7 +72,7 @@ step4:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -102,7 +102,7 @@ step5:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......@@ -121,8 +121,8 @@ endi
print =============== step6: drop dnode2
sql drop dnode 2
print show dnodes;
sql show dnodes;
print select * from information_schema.ins_dnodes;
sql select * from information_schema.ins_dnodes;
print $data[0][0] $data[0][1] $data[0][2] $data[0][3] $data[0][4]
print $data[1][0] $data[1][1] $data[1][2] $data[1][3] $data[1][4]
if $rows != 2 then
......
......@@ -25,7 +25,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 5 then
......@@ -126,7 +126,7 @@ step4:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 5 then
......@@ -151,8 +151,8 @@ endi
print =============== step5: drop dnode2
sql drop dnode 2
print show dnodes;
sql show dnodes;
print select * from information_schema.ins_dnodes;
sql select * from information_schema.ins_dnodes;
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -7,7 +7,7 @@ system sh/exec.sh -n dnode1 -s start
sql connect
sql create dnode $hostname port 7200
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 off: $data(1)[6]
print dnode2 off: $data(2)[6]
......@@ -26,7 +26,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -49,7 +49,7 @@ step3:
if $x == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 off: $data(1)[6]
print dnode2 off: $data(2)[6]
if $data(2)[6] != @status msg timeout@ then
......@@ -58,7 +58,7 @@ endi
print ========== step4
sql drop dnode 2
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 1 then
return -1
endi
......@@ -76,7 +76,7 @@ step5:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 off: $data(1)[6]
print dnode2 off: $data(3)[6]
if $data(3)[6] != @dnodeId not match@ then
......@@ -97,7 +97,7 @@ step6:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 off: $data(1)[6]
print dnode2 off: $data(3)[6]
print dnode3 off: $data(4)[6]
......@@ -119,7 +119,7 @@ step7:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 off: $data(1)[6]
print dnode3 off: $data(3)[6]
print dnode4 off: $data(4)[6]
......@@ -142,7 +142,7 @@ step8:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 off: $data(1)[6]
print dnode3 off: $data(3)[6]
print dnode4 off: $data(4)[6]
......
......@@ -26,7 +26,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -54,7 +54,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -32,7 +32,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -87,7 +87,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -32,7 +32,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -66,7 +66,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -34,7 +34,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -69,7 +69,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -40,7 +40,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -77,7 +77,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -48,7 +48,7 @@ step2:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -83,7 +83,7 @@ step3:
print ====> dnode not online!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -16,7 +16,7 @@ sql insert into d1.t1 values(now+3s, 13)
sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
if $data(1)[2] != 1 then
return -1
......@@ -34,7 +34,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -48,7 +48,7 @@ if $data(2)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
if $data(1)[2] != 0 then
......@@ -68,7 +68,7 @@ sql insert into d2.t2 values(now+3s, 23)
sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
if $data(1)[2] != 0 then
......@@ -80,7 +80,7 @@ endi
print ========== step4
sql drop dnode 2
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
if $data(1)[2] != 2 then
......@@ -104,7 +104,7 @@ step5:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......@@ -118,7 +118,7 @@ if $data(3)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
if $data(1)[2] != 1 then
......@@ -137,7 +137,7 @@ sql insert into d3.t3 values(now+3s, 33)
sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
if $data(1)[2] != 1 then
......@@ -159,7 +159,7 @@ step7:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -177,7 +177,7 @@ if $data(4)[4] != ready then
endi
sql balance vgroup
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
print dnode2 openVnodes $data(4)[2]
......@@ -200,7 +200,7 @@ sql insert into d4.t4 values(now+3s, 43)
sql insert into d4.t4 values(now+4s, 42)
sql insert into d4.t4 values(now+5s, 41)
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
print dnode2 openVnodes $data(4)[2]
......@@ -216,7 +216,7 @@ endi
print ========== step9
sql drop dnode 3
sql show dnodes
sql select * from information_schema.ins_dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
print dnode2 openVnodes $data(4)[2]
......
......@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
print =============== select * from information_schema.ins_dnodes
sql show mnodes;
if $rows != 1 then
return -1
......@@ -28,7 +28,7 @@ step1:
if $x == 20 then
return -1
endi
sql show dnodes -x step1
sql select * from information_schema.ins_dnodes -x step1
if $data(1)[4] != ready then
goto step1
endi
......
......@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
print =============== select * from information_schema.ins_dnodes
sql show mnodes;
if $rows != 1 then
return -1
......@@ -28,7 +28,7 @@ step1:
if $x == 20 then
return -1
endi
sql show dnodes -x step1
sql select * from information_schema.ins_dnodes -x step1
if $data(1)[4] != ready then
goto step1
endi
......@@ -68,7 +68,7 @@ endi
print =============== create user
sql create user user1 PASS 'user1'
sql show users
sql select * from information_schema.ins_users
if $rows != 2 then
return -1
endi
......@@ -95,7 +95,7 @@ endi
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
sql show users
sql select * from information_schema.ins_users
if $rows != 2 then
return -1
endi
......@@ -112,7 +112,7 @@ step3:
if $x == 20 then
return -1
endi
sql show dnodes -x step3
sql select * from information_schema.ins_dnodes -x step3
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $data(1)[4] != ready then
......
......@@ -25,7 +25,7 @@ step1:
if $x == 10 then
return -1
endi
sql show dnodes -x step1
sql select * from information_schema.ins_dnodes -x step1
if $data(1)[4] != ready then
goto step1
endi
......@@ -69,7 +69,7 @@ endi
print =============== step3: create user
sql create user user1 PASS 'user1'
sql show users
sql select * from information_schema.ins_users
if $rows != 2 then
return -1
endi
......@@ -92,7 +92,7 @@ print $data(1)[0] $data(1)[1] $data(1)[2]
print $data(2)[0] $data(2)[1] $data(2)[2]
print $data(3)[0] $data(3)[1] $data(3)[2]
sql show users
sql select * from information_schema.ins_users
if $rows != 2 then
return -1
endi
......@@ -104,7 +104,7 @@ step41:
if $x == 10 then
return -1
endi
sql show dnodes -x step41
sql select * from information_schema.ins_dnodes -x step41
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -131,7 +131,7 @@ print $data(1)[0] $data(1)[1] $data(1)[2]
print $data(2)[0] $data(2)[1] $data(2)[2]
print $data(3)[0] $data(3)[1] $data(3)[2]
sql show users
sql select * from information_schema.ins_users
if $rows != 2 then
return -1
endi
......@@ -143,7 +143,7 @@ step51:
if $x == 10 then
return -1
endi
sql show dnodes -x step51
sql select * from information_schema.ins_dnodes -x step51
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -170,7 +170,7 @@ print $data(1)[0] $data(1)[1] $data(1)[2]
print $data(2)[0] $data(2)[1] $data(2)[2]
print $data(3)[0] $data(3)[1] $data(3)[2]
sql show users
sql select * from information_schema.ins_users
if $rows != 2 then
return -1
endi
......@@ -182,7 +182,7 @@ step61:
if $x == 10 then
return -1
endi
sql show dnodes -x step61
sql select * from information_schema.ins_dnodes -x step61
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -17,7 +17,7 @@ step1:
if $x == 5 then
return -1
endi
sql show dnodes -x step1
sql select * from information_schema.ins_dnodes -x step1
if $data(1)[4] != ready then
goto step1
endi
......@@ -38,7 +38,7 @@ step2:
if $x == 5 then
return -1
endi
sql show dnodes -x step2
sql select * from information_schema.ins_dnodes -x step2
if $data(1)[4] != ready then
goto step2
endi
......
......@@ -22,7 +22,7 @@ step1:
if $x == 5 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(1)[4] != ready then
goto step1
endi
......@@ -46,7 +46,7 @@ step3:
if $x == 5 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
if $data(2)[4] != ready then
goto step3
endi
......@@ -104,7 +104,7 @@ step5:
if $x == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -132,7 +132,7 @@ step51:
if $x == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -186,7 +186,7 @@ step71:
if $x == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -246,7 +246,7 @@ step91:
if $x == 10 then
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -330,7 +330,7 @@ stepb:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......
......@@ -105,7 +105,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
print =============== select * from information_schema.ins_dnodes
sql create dnode $hostname port 7200
$x = 0
......@@ -16,7 +16,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -31,8 +31,8 @@ if $data(2)[4] != ready then
goto step1
endi
print =============== show dnodes
sql show dnodes;
print =============== select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes;
if $rows != 2 then
return -1
endi
......
......@@ -693,7 +693,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -267,7 +267,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -214,7 +214,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -290,7 +290,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -540,7 +540,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -373,7 +373,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -235,7 +235,7 @@ check_dnode_ready:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -453,7 +453,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -308,7 +308,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -238,7 +238,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -92,7 +92,7 @@ check_dnode_ready_0:
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......
......@@ -13,7 +13,7 @@ sql connect
# print ====> dnode not ready!
# return -1
# endi
#sql show dnodes
#sql select * from information_schema.ins_dnodes
#print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
#if $data00 != 1 then
# return -1
......@@ -39,7 +39,7 @@ sql create table t0 using stb tags (0)
sql create table tba (ts timestamp, c1 binary(10), c2 nchar(10));
print =============== run show xxxx
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 2 then
return -1
endi
......@@ -67,7 +67,7 @@ if $rows != 2 then
return -1
endi
#sql show user_table_distributed
sql show users
sql select * from information_schema.ins_users
if $rows != 1 then
return -1
endi
......@@ -126,7 +126,7 @@ check_dnode_ready:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
......@@ -137,7 +137,7 @@ endi
print ==== again run show / select of above
print =============== run show xxxx
sql show dnodes
sql select * from information_schema.ins_dnodes
if $rows != 2 then
return -1
endi
......@@ -165,7 +165,7 @@ if $rows != 2 then
return -1
endi
#sql show user_table_distributed
sql show users
sql select * from information_schema.ins_users
if $rows != 1 then
return -1
endi
......
......@@ -24,7 +24,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
......
......@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== show dnodes
print =============== select * from information_schema.ins_dnodes
sql create dnode $hostname port 7200
$x = 0
......@@ -16,7 +16,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
......@@ -31,8 +31,8 @@ if $data(2)[4] != ready then
goto step1
endi
print =============== show dnodes
sql show dnodes;
print =============== select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes;
if $rows != 2 then
return -1
endi
......
......@@ -18,7 +18,7 @@ createDnode:
if $x == 20 then
return -1
endi
sql show dnodes;
sql select * from information_schema.ins_dnodes;
if $data4_2 == offline then
goto createDnode
endi
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......
......@@ -22,7 +22,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......
......@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql show dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册