Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
44df51f9
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
44df51f9
编写于
8月 11, 2022
作者:
X
Xiaoyu Wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enh: show command optimize
上级
7176bb91
变更
146
展开全部
隐藏空白更改
内联
并排
Showing
146 changed file
with
370 addition
and
370 deletion
+370
-370
tests/pytest/account/account_create.py
tests/pytest/account/account_create.py
+2
-2
tests/script/tmp/data.sim
tests/script/tmp/data.sim
+3
-3
tests/script/tmp/monitor.sim
tests/script/tmp/monitor.sim
+1
-1
tests/script/tmp/r1.sim
tests/script/tmp/r1.sim
+1
-1
tests/script/tsim/backup/arbitrator/check_cluster_cfg_para.sim
.../script/tsim/backup/arbitrator/check_cluster_cfg_para.sim
+2
-2
tests/script/tsim/backup/arbitrator/dn2_mn1_cache_file_sync.sim
...script/tsim/backup/arbitrator/dn2_mn1_cache_file_sync.sim
+2
-2
tests/script/tsim/backup/arbitrator/dn2_mn1_cache_file_sync_second.sim
...tsim/backup/arbitrator/dn2_mn1_cache_file_sync_second.sim
+1
-1
tests/script/tsim/backup/arbitrator/dn3_mn1_nw_disable_timeout_autoDropDnode.sim
...p/arbitrator/dn3_mn1_nw_disable_timeout_autoDropDnode.sim
+3
-3
tests/script/tsim/backup/arbitrator/dn3_mn1_r2_vnode_delDir.sim
...script/tsim/backup/arbitrator/dn3_mn1_r2_vnode_delDir.sim
+4
-4
tests/script/tsim/backup/arbitrator/dn3_mn1_r3_vnode_delDir.sim
...script/tsim/backup/arbitrator/dn3_mn1_r3_vnode_delDir.sim
+4
-4
tests/script/tsim/backup/arbitrator/dn3_mn1_replica2_wal1_AddDelDnode.sim
...m/backup/arbitrator/dn3_mn1_replica2_wal1_AddDelDnode.sim
+4
-4
tests/script/tsim/backup/arbitrator/dn3_mn1_replica_change.sim
.../script/tsim/backup/arbitrator/dn3_mn1_replica_change.sim
+4
-4
tests/script/tsim/backup/arbitrator/dn3_mn1_replica_change_dropDnod.sim
...sim/backup/arbitrator/dn3_mn1_replica_change_dropDnod.sim
+1
-1
tests/script/tsim/backup/arbitrator/dn3_mn1_stopDnode_timeout.sim
...ript/tsim/backup/arbitrator/dn3_mn1_stopDnode_timeout.sim
+5
-5
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_change.sim
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_change.sim
+4
-4
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_corruptFile_offline.sim
...m/backup/arbitrator/dn3_mn1_vnode_corruptFile_offline.sim
+5
-5
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_corruptFile_online.sim
...im/backup/arbitrator/dn3_mn1_vnode_corruptFile_online.sim
+5
-5
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_createErrData_online.sim
.../backup/arbitrator/dn3_mn1_vnode_createErrData_online.sim
+3
-3
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_delDir.sim
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_delDir.sim
+6
-6
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim
...backup/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim
+5
-5
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_nomaster.sim
.../script/tsim/backup/arbitrator/dn3_mn1_vnode_nomaster.sim
+2
-2
tests/script/tsim/backup/arbitrator/insert_duplicationTs.sim
tests/script/tsim/backup/arbitrator/insert_duplicationTs.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica2_alterTable_online.sim
.../backup/arbitrator/offline_replica2_alterTable_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica2_alterTag_online.sim
...im/backup/arbitrator/offline_replica2_alterTag_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica2_createTable_online.sim
...backup/arbitrator/offline_replica2_createTable_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica2_dropDb_online.sim
...tsim/backup/arbitrator/offline_replica2_dropDb_online.sim
+1
-1
tests/script/tsim/backup/arbitrator/offline_replica2_dropTable_online.sim
...m/backup/arbitrator/offline_replica2_dropTable_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica3_alterTable_online.sim
.../backup/arbitrator/offline_replica3_alterTable_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica3_alterTag_online.sim
...im/backup/arbitrator/offline_replica3_alterTag_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica3_createTable_online.sim
...backup/arbitrator/offline_replica3_createTable_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/offline_replica3_dropDb_online.sim
...tsim/backup/arbitrator/offline_replica3_dropDb_online.sim
+1
-1
tests/script/tsim/backup/arbitrator/offline_replica3_dropTable_online.sim
...m/backup/arbitrator/offline_replica3_dropTable_online.sim
+2
-2
tests/script/tsim/backup/arbitrator/replica_changeWithArbitrator.sim
...t/tsim/backup/arbitrator/replica_changeWithArbitrator.sim
+2
-2
tests/script/tsim/backup/arbitrator/sync_replica2_alterTable_add.sim
...t/tsim/backup/arbitrator/sync_replica2_alterTable_add.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica2_alterTable_drop.sim
.../tsim/backup/arbitrator/sync_replica2_alterTable_drop.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica2_dropDb.sim
tests/script/tsim/backup/arbitrator/sync_replica2_dropDb.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica2_dropTable.sim
...script/tsim/backup/arbitrator/sync_replica2_dropTable.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica3_alterTable_add.sim
...t/tsim/backup/arbitrator/sync_replica3_alterTable_add.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica3_alterTable_drop.sim
.../tsim/backup/arbitrator/sync_replica3_alterTable_drop.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica3_createTable.sim
...ript/tsim/backup/arbitrator/sync_replica3_createTable.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica3_dnodeChang_DropAddAlterTableDropDb.sim
...ator/sync_replica3_dnodeChang_DropAddAlterTableDropDb.sim
+4
-4
tests/script/tsim/backup/arbitrator/sync_replica3_dropDb.sim
tests/script/tsim/backup/arbitrator/sync_replica3_dropDb.sim
+1
-1
tests/script/tsim/backup/arbitrator/sync_replica3_dropTable.sim
...script/tsim/backup/arbitrator/sync_replica3_dropTable.sim
+1
-1
tests/script/tsim/backup/clusterSimCase/cluster_main.sim
tests/script/tsim/backup/clusterSimCase/cluster_main.sim
+1
-1
tests/script/tsim/bnode/basic1.sim
tests/script/tsim/bnode/basic1.sim
+3
-3
tests/script/tsim/db/alter_option.sim
tests/script/tsim/db/alter_option.sim
+1
-1
tests/script/tsim/db/alter_replica_13.sim
tests/script/tsim/db/alter_replica_13.sim
+4
-4
tests/script/tsim/db/alter_replica_31.sim
tests/script/tsim/db/alter_replica_31.sim
+3
-3
tests/script/tsim/db/basic1.sim
tests/script/tsim/db/basic1.sim
+2
-2
tests/script/tsim/db/commit.sim
tests/script/tsim/db/commit.sim
+1
-1
tests/script/tsim/db/create_all_options.sim
tests/script/tsim/db/create_all_options.sim
+1
-1
tests/script/tsim/db/error1.sim
tests/script/tsim/db/error1.sim
+1
-1
tests/script/tsim/dnode/balance1.sim
tests/script/tsim/dnode/balance1.sim
+11
-11
tests/script/tsim/dnode/balance2.sim
tests/script/tsim/dnode/balance2.sim
+6
-6
tests/script/tsim/dnode/balance3.sim
tests/script/tsim/dnode/balance3.sim
+9
-9
tests/script/tsim/dnode/balance_replica1.sim
tests/script/tsim/dnode/balance_replica1.sim
+2
-2
tests/script/tsim/dnode/balance_replica3.sim
tests/script/tsim/dnode/balance_replica3.sim
+2
-2
tests/script/tsim/dnode/balancex.sim
tests/script/tsim/dnode/balancex.sim
+7
-7
tests/script/tsim/dnode/create_dnode.sim
tests/script/tsim/dnode/create_dnode.sim
+3
-3
tests/script/tsim/dnode/drop_dnode_has_mnode.sim
tests/script/tsim/dnode/drop_dnode_has_mnode.sim
+4
-4
tests/script/tsim/dnode/drop_dnode_has_multi_vnode_replica1.sim
...script/tsim/dnode/drop_dnode_has_multi_vnode_replica1.sim
+4
-4
tests/script/tsim/dnode/drop_dnode_has_multi_vnode_replica3.sim
...script/tsim/dnode/drop_dnode_has_multi_vnode_replica3.sim
+4
-4
tests/script/tsim/dnode/drop_dnode_has_qnode_snode.sim
tests/script/tsim/dnode/drop_dnode_has_qnode_snode.sim
+3
-3
tests/script/tsim/dnode/drop_dnode_has_vnode_replica1.sim
tests/script/tsim/dnode/drop_dnode_has_vnode_replica1.sim
+5
-5
tests/script/tsim/dnode/drop_dnode_has_vnode_replica3.sim
tests/script/tsim/dnode/drop_dnode_has_vnode_replica3.sim
+4
-4
tests/script/tsim/dnode/offline_reason.sim
tests/script/tsim/dnode/offline_reason.sim
+8
-8
tests/script/tsim/dnode/redistribute_vgroup_replica1.sim
tests/script/tsim/dnode/redistribute_vgroup_replica1.sim
+2
-2
tests/script/tsim/dnode/redistribute_vgroup_replica3_v1_follower.sim
...t/tsim/dnode/redistribute_vgroup_replica3_v1_follower.sim
+2
-2
tests/script/tsim/dnode/redistribute_vgroup_replica3_v1_leader.sim
...ipt/tsim/dnode/redistribute_vgroup_replica3_v1_leader.sim
+2
-2
tests/script/tsim/dnode/redistribute_vgroup_replica3_v2.sim
tests/script/tsim/dnode/redistribute_vgroup_replica3_v2.sim
+2
-2
tests/script/tsim/dnode/redistribute_vgroup_replica3_v3.sim
tests/script/tsim/dnode/redistribute_vgroup_replica3_v3.sim
+2
-2
tests/script/tsim/dnode/use_dropped_dnode.sim
tests/script/tsim/dnode/use_dropped_dnode.sim
+3
-3
tests/script/tsim/dnode/vnode_clean.sim
tests/script/tsim/dnode/vnode_clean.sim
+12
-12
tests/script/tsim/mnode/basic1.sim
tests/script/tsim/mnode/basic1.sim
+2
-2
tests/script/tsim/mnode/basic2.sim
tests/script/tsim/mnode/basic2.sim
+5
-5
tests/script/tsim/mnode/basic3.sim
tests/script/tsim/mnode/basic3.sim
+8
-8
tests/script/tsim/mnode/basic4.sim
tests/script/tsim/mnode/basic4.sim
+2
-2
tests/script/tsim/mnode/basic5.sim
tests/script/tsim/mnode/basic5.sim
+7
-7
tests/script/tsim/parser/fourArithmetic-basic.sim
tests/script/tsim/parser/fourArithmetic-basic.sim
+1
-1
tests/script/tsim/qnode/basic1.sim
tests/script/tsim/qnode/basic1.sim
+4
-4
tests/script/tsim/query/charScalarFunction.sim
tests/script/tsim/query/charScalarFunction.sim
+1
-1
tests/script/tsim/query/complex_group.sim
tests/script/tsim/query/complex_group.sim
+1
-1
tests/script/tsim/query/complex_having.sim
tests/script/tsim/query/complex_having.sim
+1
-1
tests/script/tsim/query/complex_limit.sim
tests/script/tsim/query/complex_limit.sim
+1
-1
tests/script/tsim/query/complex_select.sim
tests/script/tsim/query/complex_select.sim
+1
-1
tests/script/tsim/query/complex_where.sim
tests/script/tsim/query/complex_where.sim
+1
-1
tests/script/tsim/query/interval-offset.sim
tests/script/tsim/query/interval-offset.sim
+1
-1
tests/script/tsim/query/scalarFunction.sim
tests/script/tsim/query/scalarFunction.sim
+1
-1
tests/script/tsim/query/session.sim
tests/script/tsim/query/session.sim
+1
-1
tests/script/tsim/query/stddev.sim
tests/script/tsim/query/stddev.sim
+1
-1
tests/script/tsim/query/time_process.sim
tests/script/tsim/query/time_process.sim
+1
-1
tests/script/tsim/show/basic.sim
tests/script/tsim/show/basic.sim
+6
-6
tests/script/tsim/sma/drop_sma.sim
tests/script/tsim/sma/drop_sma.sim
+1
-1
tests/script/tsim/snode/basic1.sim
tests/script/tsim/snode/basic1.sim
+4
-4
tests/script/tsim/stable/dnode3.sim
tests/script/tsim/stable/dnode3.sim
+1
-1
tests/script/tsim/stream/distributeInterval0.sim
tests/script/tsim/stream/distributeInterval0.sim
+1
-1
tests/script/tsim/stream/distributeIntervalRetrive0.sim
tests/script/tsim/stream/distributeIntervalRetrive0.sim
+1
-1
tests/script/tsim/stream/distributeSession0.sim
tests/script/tsim/stream/distributeSession0.sim
+1
-1
tests/script/tsim/stream/drop_stream.sim
tests/script/tsim/stream/drop_stream.sim
+1
-1
tests/script/tsim/stream/ignoreExpiredData.sim
tests/script/tsim/stream/ignoreExpiredData.sim
+1
-1
tests/script/tsim/sync/3Replica1VgElect.sim
tests/script/tsim/sync/3Replica1VgElect.sim
+3
-3
tests/script/tsim/sync/3Replica5VgElect.sim
tests/script/tsim/sync/3Replica5VgElect.sim
+3
-3
tests/script/tsim/sync/3Replica5VgElect3mnode.sim
tests/script/tsim/sync/3Replica5VgElect3mnode.sim
+3
-3
tests/script/tsim/sync/3Replica5VgElect3mnodedrop.sim
tests/script/tsim/sync/3Replica5VgElect3mnodedrop.sim
+4
-4
tests/script/tsim/sync/electTest.sim
tests/script/tsim/sync/electTest.sim
+1
-1
tests/script/tsim/sync/mnodeLeaderTransfer.sim
tests/script/tsim/sync/mnodeLeaderTransfer.sim
+2
-2
tests/script/tsim/sync/oneReplica1VgElect.sim
tests/script/tsim/sync/oneReplica1VgElect.sim
+1
-1
tests/script/tsim/sync/oneReplica1VgElectWithInsert.sim
tests/script/tsim/sync/oneReplica1VgElectWithInsert.sim
+1
-1
tests/script/tsim/sync/oneReplica5VgElect.sim
tests/script/tsim/sync/oneReplica5VgElect.sim
+2
-2
tests/script/tsim/sync/threeReplica1VgElect.sim
tests/script/tsim/sync/threeReplica1VgElect.sim
+1
-1
tests/script/tsim/sync/threeReplica1VgElectWihtInsert.sim
tests/script/tsim/sync/threeReplica1VgElectWihtInsert.sim
+1
-1
tests/script/tsim/sync/vnode-insert.sim
tests/script/tsim/sync/vnode-insert.sim
+1
-1
tests/script/tsim/sync/vnodeLeaderTransfer.sim
tests/script/tsim/sync/vnodeLeaderTransfer.sim
+1
-1
tests/script/tsim/sync/vnodeLogAnalyzeTest.sim
tests/script/tsim/sync/vnodeLogAnalyzeTest.sim
+1
-1
tests/script/tsim/sync/vnodesnapshot-rsma-test.sim
tests/script/tsim/sync/vnodesnapshot-rsma-test.sim
+1
-1
tests/script/tsim/sync/vnodesnapshot-test.sim
tests/script/tsim/sync/vnodesnapshot-test.sim
+1
-1
tests/script/tsim/sync/vnodesnapshot.sim
tests/script/tsim/sync/vnodesnapshot.sim
+1
-1
tests/script/tsim/trans/create_db.sim
tests/script/tsim/trans/create_db.sim
+3
-3
tests/script/tsim/trans/lossdata1.sim
tests/script/tsim/trans/lossdata1.sim
+2
-2
tests/script/tsim/user/basic.sim
tests/script/tsim/user/basic.sim
+9
-9
tests/script/tsim/user/password.sim
tests/script/tsim/user/password.sim
+4
-4
tests/script/tsim/user/privilege_db.sim
tests/script/tsim/user/privilege_db.sim
+2
-2
tests/script/tsim/user/privilege_sysinfo.sim
tests/script/tsim/user/privilege_sysinfo.sim
+2
-2
tests/script/tsim/valgrind/basic1.sim
tests/script/tsim/valgrind/basic1.sim
+2
-2
tests/script/tsim/valgrind/basic2.sim
tests/script/tsim/valgrind/basic2.sim
+2
-2
tests/script/tsim/valgrind/basic3.sim
tests/script/tsim/valgrind/basic3.sim
+2
-2
tests/script/tsim/valgrind/basic4.sim
tests/script/tsim/valgrind/basic4.sim
+2
-2
tests/script/tsim/valgrind/checkError1.sim
tests/script/tsim/valgrind/checkError1.sim
+5
-5
tests/script/tsim/valgrind/checkError2.sim
tests/script/tsim/valgrind/checkError2.sim
+2
-2
tests/script/tsim/valgrind/checkError3.sim
tests/script/tsim/valgrind/checkError3.sim
+2
-2
tests/script/tsim/valgrind/checkError4.sim
tests/script/tsim/valgrind/checkError4.sim
+2
-2
tests/script/tsim/valgrind/checkError5.sim
tests/script/tsim/valgrind/checkError5.sim
+2
-2
tests/script/tsim/valgrind/checkError6.sim
tests/script/tsim/valgrind/checkError6.sim
+2
-2
tests/script/tsim/vnode/replica3_basic.sim
tests/script/tsim/vnode/replica3_basic.sim
+1
-1
tests/script/tsim/vnode/replica3_import.sim
tests/script/tsim/vnode/replica3_import.sim
+1
-1
tests/script/tsim/vnode/replica3_many.sim
tests/script/tsim/vnode/replica3_many.sim
+1
-1
tests/script/tsim/vnode/replica3_repeat.sim
tests/script/tsim/vnode/replica3_repeat.sim
+1
-1
tests/script/tsim/vnode/replica3_vgroup.sim
tests/script/tsim/vnode/replica3_vgroup.sim
+1
-1
tests/script/tsim/vnode/stable_balance_replica1.sim
tests/script/tsim/vnode/stable_balance_replica1.sim
+3
-3
tests/script/tsim/vnode/stable_dnode2.sim
tests/script/tsim/vnode/stable_dnode2.sim
+1
-1
tests/script/tsim/vnode/stable_dnode2_stop.sim
tests/script/tsim/vnode/stable_dnode2_stop.sim
+3
-3
tests/script/tsim/vnode/stable_dnode3.sim
tests/script/tsim/vnode/stable_dnode3.sim
+1
-1
tests/script/tsim/vnode/stable_replica3_dnode6.sim
tests/script/tsim/vnode/stable_replica3_dnode6.sim
+2
-2
tests/script/tsim/vnode/stable_replica3_vnode3.sim
tests/script/tsim/vnode/stable_replica3_vnode3.sim
+1
-1
tests/system-test/0-others/user_control.py
tests/system-test/0-others/user_control.py
+7
-7
tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py
tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py
+1
-1
未找到文件。
tests/pytest/account/account_create.py
浏览文件 @
44df51f9
...
...
@@ -24,11 +24,11 @@ class TDTestCase:
tdSql
.
init
(
conn
.
cursor
(),
logSql
)
def
run
(
self
):
tdSql
.
query
(
"s
how
users"
)
tdSql
.
query
(
"s
elect * from information_schema.ins_
users"
)
rows
=
tdSql
.
queryRows
tdSql
.
execute
(
"create user test PASS 'test' "
)
tdSql
.
query
(
"s
how
users"
)
tdSql
.
query
(
"s
elect * from information_schema.ins_
users"
)
tdSql
.
checkRows
(
rows
+
1
)
tdSql
.
error
(
"create user tdenginetdenginetdengine PASS 'test' "
)
...
...
tests/script/tmp/data.sim
浏览文件 @
44df51f9
...
...
@@ -23,7 +23,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $data(2)[2] != 1 then
return -1
endi
...
...
tests/script/tmp/monitor.sim
浏览文件 @
44df51f9
...
...
@@ -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 =============== s
how
dnodes
print =============== s
elect * 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";
...
...
tests/script/tmp/r1.sim
浏览文件 @
44df51f9
...
...
@@ -17,7 +17,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> rows: $rows
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
...
...
tests/script/tsim/backup/arbitrator/check_cluster_cfg_para.sim
浏览文件 @
44df51f9
...
...
@@ -114,7 +114,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/backup/arbitrator/dn2_mn1_cache_file_sync.sim
浏览文件 @
44df51f9
...
...
@@ -119,7 +119,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_ready
...
...
tests/script/tsim/backup/arbitrator/dn2_mn1_cache_file_sync_second.sim
浏览文件 @
44df51f9
...
...
@@ -16,7 +16,7 @@ system sh/exec.sh -n dnode2 -s start
sleep 2000
wait_dnode2_ready:
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode2_ready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_nw_disable_timeout_autoDropDnode.sim
浏览文件 @
44df51f9
...
...
@@ -101,7 +101,7 @@ if $data00 != $totalRows then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
return -1
endi
...
...
@@ -119,7 +119,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
return -1
endi
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_r2_vnode_delDir.sim
浏览文件 @
44df51f9
...
...
@@ -102,7 +102,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_reready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_r3_vnode_delDir.sim
浏览文件 @
44df51f9
...
...
@@ -104,7 +104,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode23_reready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_replica2_wal1_AddDelDnode.sim
浏览文件 @
44df51f9
...
...
@@ -140,7 +140,7 @@ if $data00 != $totalRows then
endi
#sleep 2000
#sql s
how
dnodes
#sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode5
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_replica_change.sim
浏览文件 @
44df51f9
...
...
@@ -59,7 +59,7 @@ step1:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 $data4_1
print dnode2 $data4_2
...
...
@@ -140,7 +140,7 @@ step2:
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
goto step9
endi
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_replica_change_dropDnod.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_dropped
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_stopDnode_timeout.sim
浏览文件 @
44df51f9
...
...
@@ -102,7 +102,7 @@ if $data00 != $totalRows then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
return -1
endi
...
...
@@ -118,7 +118,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
return -1
endi
...
...
@@ -191,7 +191,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_change.sim
浏览文件 @
44df51f9
...
...
@@ -94,7 +94,7 @@ if $data00 != $totalRows then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode23_offline
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_corruptFile_offline.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode23_reready_2
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_corruptFile_online.sim
浏览文件 @
44df51f9
...
...
@@ -110,8 +110,8 @@ if $data00 != $totalRows then
return -1
endi
print s
how
dnodes
sql s
how
dnodes
print s
elect * from information_schema.ins_
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_reready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_createErrData_online.sim
浏览文件 @
44df51f9
...
...
@@ -120,7 +120,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode3_reready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_delDir.sim
浏览文件 @
44df51f9
...
...
@@ -105,7 +105,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode2_reready
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode23_reready_2
...
...
tests/script/tsim/backup/arbitrator/dn3_mn1_vnode_nomaster.sim
浏览文件 @
44df51f9
...
...
@@ -109,7 +109,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode3_offline_0
...
...
tests/script/tsim/backup/arbitrator/insert_duplicationTs.sim
浏览文件 @
44df51f9
...
...
@@ -131,7 +131,7 @@ if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode2_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica2_alterTable_online.sim
浏览文件 @
44df51f9
...
...
@@ -107,7 +107,7 @@ $loopCnt = $loopCnt + 1
if $loopCnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica2_alterTag_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica2_createTable_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica2_dropDb_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/offline_replica2_dropTable_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica3_alterTable_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica3_alterTag_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica3_createTable_online.sim
浏览文件 @
44df51f9
...
...
@@ -107,7 +107,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/offline_replica3_dropDb_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/offline_replica3_dropTable_online.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_ready
...
...
tests/script/tsim/backup/arbitrator/replica_changeWithArbitrator.sim
浏览文件 @
44df51f9
...
...
@@ -114,7 +114,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 3 then
sleep 2000
goto wait_dnode_ready
...
...
tests/script/tsim/backup/arbitrator/sync_replica2_alterTable_add.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica2_alterTable_drop.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica2_dropDb.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica2_dropTable.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica3_alterTable_add.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica3_alterTable_drop.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 20 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica3_createTable.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica3_dnodeChang_DropAddAlterTableDropDb.sim
浏览文件 @
44df51f9
...
...
@@ -105,7 +105,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 4 then
sleep 2000
goto wait_dnode4_ready_3
...
...
tests/script/tsim/backup/arbitrator/sync_replica3_dropDb.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/arbitrator/sync_replica3_dropTable.sim
浏览文件 @
44df51f9
...
...
@@ -106,7 +106,7 @@ $cnt = $cnt + 1
if $cnt == 10 then
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 5 then
sleep 2000
goto wait_dnode4_offline_0
...
...
tests/script/tsim/backup/clusterSimCase/cluster_main.sim
浏览文件 @
44df51f9
# scp -r root@114.116.252.220:/home/ubuntu/clusterSimCase unique/.
#taos> s
how
dnodes;
#taos> s
elect * 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 |
...
...
tests/script/tsim/bnode/basic1.sim
浏览文件 @
44df51f9
...
...
@@ -5,8 +5,8 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== s
how
dnodes
sql s
how
dnodes;
print =============== s
elect * from information_schema.ins_
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
elect * from information_schema.ins_
dnodes;
if $rows != 2 then
return -1
endi
...
...
tests/script/tsim/db/alter_option.sim
浏览文件 @
44df51f9
...
...
@@ -18,7 +18,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/db/alter_replica_13.sim
浏览文件 @
44df51f9
...
...
@@ -20,7 +20,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $data(2)[2] != 1 then
return -1
endi
# vnodes
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> rows: $rows
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
...
...
tests/script/tsim/db/alter_replica_31.sim
浏览文件 @
44df51f9
...
...
@@ -22,7 +22,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $data(2)[2] != 1 then
return -1
endi
...
...
tests/script/tsim/db/basic1.sim
浏览文件 @
44df51f9
...
...
@@ -136,8 +136,8 @@ if $rows != 4 then
return -1
endi
print =============== s
how
dnodes
sql s
how
dnodes
print =============== s
elect * from information_schema.ins_
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $data00 != 1 then
return -1
...
...
tests/script/tsim/db/commit.sim
浏览文件 @
44df51f9
...
...
@@ -18,7 +18,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
...
...
tests/script/tsim/db/create_all_options.sim
浏览文件 @
44df51f9
...
...
@@ -17,7 +17,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/db/error1.sim
浏览文件 @
44df51f9
...
...
@@ -16,7 +16,7 @@ create1:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $data4_2 != ready then
goto create1
endi
...
...
tests/script/tsim/dnode/balance1.sim
浏览文件 @
44df51f9
...
...
@@ -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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(4)[2]
if $data(1)[2] != 2 then
...
...
tests/script/tsim/dnode/balance2.sim
浏览文件 @
44df51f9
...
...
@@ -27,7 +27,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
...
...
tests/script/tsim/dnode/balance3.sim
浏览文件 @
44df51f9
...
...
@@ -31,7 +31,7 @@ step10:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 openVnodes $data(1)[2]
print dnode3 openVnodes $data(3)[2]
print dnode4 openVnodes $data(4)[2]
...
...
tests/script/tsim/dnode/balance_replica1.sim
浏览文件 @
44df51f9
...
...
@@ -22,7 +22,7 @@ step1:
print ---> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ---> $data00 $data01 $data02 $data03 $data04 $data05
print ---> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
...
...
tests/script/tsim/dnode/balance_replica3.sim
浏览文件 @
44df51f9
...
...
@@ -30,7 +30,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/balancex.sim
浏览文件 @
44df51f9
...
...
@@ -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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(2)[2]
print dnode2 openVnodes $data(3)[2]
...
...
tests/script/tsim/dnode/create_dnode.sim
浏览文件 @
44df51f9
...
...
@@ -5,8 +5,8 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== s
how
dnodes
sql s
how
dnodes;
print =============== s
elect * from information_schema.ins_
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
elect * from information_schema.ins_
dnodes;
if $rows != 2 then
return -1
endi
...
...
tests/script/tsim/dnode/drop_dnode_has_mnode.sim
浏览文件 @
44df51f9
...
...
@@ -17,7 +17,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
how
dnodes;
print s
elect * from information_schema.ins_
dnodes;
sql s
elect * 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
...
...
tests/script/tsim/dnode/drop_dnode_has_multi_vnode_replica1.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
how
dnodes;
print s
elect * from information_schema.ins_
dnodes;
sql s
elect * 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
...
...
tests/script/tsim/dnode/drop_dnode_has_multi_vnode_replica3.sim
浏览文件 @
44df51f9
...
...
@@ -25,7 +25,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
how
dnodes;
print s
elect * from information_schema.ins_
dnodes;
sql s
elect * 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
...
...
tests/script/tsim/dnode/drop_dnode_has_qnode_snode.sim
浏览文件 @
44df51f9
...
...
@@ -16,7 +16,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
how
dnodes;
print s
elect * from information_schema.ins_
dnodes;
sql s
elect * 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
...
...
tests/script/tsim/dnode/drop_dnode_has_vnode_replica1.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
how
dnodes;
print s
elect * from information_schema.ins_
dnodes;
sql s
elect * 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
...
...
tests/script/tsim/dnode/drop_dnode_has_vnode_replica3.sim
浏览文件 @
44df51f9
...
...
@@ -25,7 +25,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes;
sql s
how
dnodes;
print s
elect * from information_schema.ins_
dnodes;
sql s
elect * 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
...
...
tests/script/tsim/dnode/offline_reason.sim
浏览文件 @
44df51f9
...
...
@@ -7,7 +7,7 @@ system sh/exec.sh -n dnode1 -s start
sql connect
sql create dnode $hostname port 7200
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
if $rows != 1 then
return -1
endi
...
...
@@ -76,7 +76,7 @@ step5:
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 off: $data(1)[6]
print dnode3 off: $data(3)[6]
print dnode4 off: $data(4)[6]
...
...
tests/script/tsim/dnode/redistribute_vgroup_replica1.sim
浏览文件 @
44df51f9
...
...
@@ -26,7 +26,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/redistribute_vgroup_replica3_v1_follower.sim
浏览文件 @
44df51f9
...
...
@@ -32,7 +32,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/redistribute_vgroup_replica3_v1_leader.sim
浏览文件 @
44df51f9
...
...
@@ -32,7 +32,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/redistribute_vgroup_replica3_v2.sim
浏览文件 @
44df51f9
...
...
@@ -34,7 +34,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/redistribute_vgroup_replica3_v3.sim
浏览文件 @
44df51f9
...
...
@@ -40,7 +40,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/use_dropped_dnode.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not online!
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/dnode/vnode_clean.sim
浏览文件 @
44df51f9
...
...
@@ -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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print dnode1 openVnodes $data(1)[2]
print dnode2 openVnodes $data(3)[2]
print dnode2 openVnodes $data(4)[2]
...
...
tests/script/tsim/mnode/basic1.sim
浏览文件 @
44df51f9
...
...
@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== s
how
dnodes
print =============== s
elect * 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 s
how
dnodes -x step1
sql s
elect * from information_schema.ins_
dnodes -x step1
if $data(1)[4] != ready then
goto step1
endi
...
...
tests/script/tsim/mnode/basic2.sim
浏览文件 @
44df51f9
...
...
@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== s
how
dnodes
print =============== s
elect * 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 s
how
dnodes -x step1
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
dnodes -x step3
sql s
elect * 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
...
...
tests/script/tsim/mnode/basic3.sim
浏览文件 @
44df51f9
...
...
@@ -25,7 +25,7 @@ step1:
if $x == 10 then
return -1
endi
sql s
how
dnodes -x step1
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
dnodes -x step41
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
dnodes -x step51
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
dnodes -x step61
sql s
elect * 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
...
...
tests/script/tsim/mnode/basic4.sim
浏览文件 @
44df51f9
...
...
@@ -17,7 +17,7 @@ step1:
if $x == 5 then
return -1
endi
sql s
how
dnodes -x step1
sql s
elect * 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 s
how
dnodes -x step2
sql s
elect * from information_schema.ins_
dnodes -x step2
if $data(1)[4] != ready then
goto step2
endi
...
...
tests/script/tsim/mnode/basic5.sim
浏览文件 @
44df51f9
...
...
@@ -22,7 +22,7 @@ step1:
if $x == 5 then
return -1
endi
sql s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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
...
...
tests/script/tsim/parser/fourArithmetic-basic.sim
浏览文件 @
44df51f9
...
...
@@ -105,7 +105,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/qnode/basic1.sim
浏览文件 @
44df51f9
...
...
@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== s
how
dnodes
print =============== s
elect * 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 s
how
dnodes
sql s
elect * 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 =============== s
how
dnodes
sql s
how
dnodes;
print =============== s
elect * from information_schema.ins_
dnodes
sql s
elect * from information_schema.ins_
dnodes;
if $rows != 2 then
return -1
endi
...
...
tests/script/tsim/query/charScalarFunction.sim
浏览文件 @
44df51f9
...
...
@@ -693,7 +693,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/complex_group.sim
浏览文件 @
44df51f9
...
...
@@ -267,7 +267,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/complex_having.sim
浏览文件 @
44df51f9
...
...
@@ -214,7 +214,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/complex_limit.sim
浏览文件 @
44df51f9
...
...
@@ -290,7 +290,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/complex_select.sim
浏览文件 @
44df51f9
...
...
@@ -540,7 +540,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/complex_where.sim
浏览文件 @
44df51f9
...
...
@@ -373,7 +373,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/interval-offset.sim
浏览文件 @
44df51f9
...
...
@@ -235,7 +235,7 @@ check_dnode_ready:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/scalarFunction.sim
浏览文件 @
44df51f9
...
...
@@ -453,7 +453,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/session.sim
浏览文件 @
44df51f9
...
...
@@ -308,7 +308,7 @@ if $loop_test == 0 then
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/stddev.sim
浏览文件 @
44df51f9
...
...
@@ -238,7 +238,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/query/time_process.sim
浏览文件 @
44df51f9
...
...
@@ -92,7 +92,7 @@ check_dnode_ready_0:
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $rows $data00 $data01 $data02 $data03 $data04 $data05
if $data00 != 1 then
return -1
...
...
tests/script/tsim/show/basic.sim
浏览文件 @
44df51f9
...
...
@@ -13,7 +13,7 @@ sql connect
# print ====> dnode not ready!
# return -1
# endi
#sql s
how
dnodes
#sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
users
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
dnodes
sql s
elect * 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 s
how
users
sql s
elect * from information_schema.ins_
users
if $rows != 1 then
return -1
endi
...
...
tests/script/tsim/sma/drop_sma.sim
浏览文件 @
44df51f9
...
...
@@ -24,7 +24,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 3 then
...
...
tests/script/tsim/snode/basic1.sim
浏览文件 @
44df51f9
...
...
@@ -5,7 +5,7 @@ system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
sql connect
print =============== s
how
dnodes
print =============== s
elect * 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 s
how
dnodes
sql s
elect * 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 =============== s
how
dnodes
sql s
how
dnodes;
print =============== s
elect * from information_schema.ins_
dnodes
sql s
elect * from information_schema.ins_
dnodes;
if $rows != 2 then
return -1
endi
...
...
tests/script/tsim/stable/dnode3.sim
浏览文件 @
44df51f9
...
...
@@ -18,7 +18,7 @@ createDnode:
if $x == 20 then
return -1
endi
sql s
how
dnodes;
sql s
elect * from information_schema.ins_
dnodes;
if $data4_2 == offline then
goto createDnode
endi
...
...
tests/script/tsim/stream/distributeInterval0.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
...
...
tests/script/tsim/stream/distributeIntervalRetrive0.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
...
...
tests/script/tsim/stream/distributeSession0.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
...
...
tests/script/tsim/stream/drop_stream.sim
浏览文件 @
44df51f9
...
...
@@ -22,7 +22,7 @@ step2:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
...
...
tests/script/tsim/stream/ignoreExpiredData.sim
浏览文件 @
44df51f9
...
...
@@ -19,7 +19,7 @@ step1:
print ====> dnode not ready!
return -1
endi
sql s
how
dnodes
sql s
elect * from information_schema.ins_
dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
if $rows != 2 then
...
...
tests/script/tsim/sync/3Replica1VgElect.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/3Replica5VgElect.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/3Replica5VgElect3mnode.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/3Replica5VgElect3mnodedrop.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/electTest.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/mnodeLeaderTransfer.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/oneReplica1VgElect.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/oneReplica1VgElectWithInsert.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/oneReplica5VgElect.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/threeReplica1VgElect.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/threeReplica1VgElectWihtInsert.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/vnode-insert.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/vnodeLeaderTransfer.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/vnodeLogAnalyzeTest.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/vnodesnapshot-rsma-test.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/vnodesnapshot-test.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/sync/vnodesnapshot.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/trans/create_db.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/trans/lossdata1.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/user/basic.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/user/password.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/user/privilege_db.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/user/privilege_sysinfo.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/basic1.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/basic2.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/basic3.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/basic4.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/checkError1.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/checkError2.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/checkError3.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/checkError4.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/checkError5.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/valgrind/checkError6.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/replica3_basic.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/replica3_import.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/replica3_many.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/replica3_repeat.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/replica3_vgroup.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/stable_balance_replica1.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/stable_dnode2.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/stable_dnode2_stop.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/stable_dnode3.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/stable_replica3_dnode6.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/script/tsim/vnode/stable_replica3_vnode3.sim
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/system-test/0-others/user_control.py
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py
浏览文件 @
44df51f9
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录