Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
cf87f800
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cf87f800
编写于
1月 11, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-2680
上级
269b9b45
变更
35
显示空白变更内容
内联
并排
Showing
35 changed file
with
267 addition
and
65 deletion
+267
-65
src/sync/src/syncMain.c
src/sync/src/syncMain.c
+3
-0
tests/script/issue/TD-2680.sim
tests/script/issue/TD-2680.sim
+202
-0
tests/script/issue/TD-2713.sim
tests/script/issue/TD-2713.sim
+0
-4
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+1
-0
tests/script/unique/arbitrator/check_cluster_cfg_para.sim
tests/script/unique/arbitrator/check_cluster_cfg_para.sim
+2
-2
tests/script/unique/arbitrator/dn3_mn1_r2_vnode_delDir.sim
tests/script/unique/arbitrator/dn3_mn1_r2_vnode_delDir.sim
+4
-4
tests/script/unique/arbitrator/dn3_mn1_r3_vnode_delDir.sim
tests/script/unique/arbitrator/dn3_mn1_r3_vnode_delDir.sim
+4
-4
tests/script/unique/arbitrator/dn3_mn1_replica_change_dropDnod.sim
...ipt/unique/arbitrator/dn3_mn1_replica_change_dropDnod.sim
+1
-1
tests/script/unique/arbitrator/dn3_mn1_vnode_delDir.sim
tests/script/unique/arbitrator/dn3_mn1_vnode_delDir.sim
+6
-6
tests/script/unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim
...unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim
+4
-4
tests/script/unique/arbitrator/dn3_mn1_vnode_nomaster.sim
tests/script/unique/arbitrator/dn3_mn1_vnode_nomaster.sim
+2
-2
tests/script/unique/arbitrator/insert_duplicationTs.sim
tests/script/unique/arbitrator/insert_duplicationTs.sim
+2
-2
tests/script/unique/arbitrator/offline_replica2_alterTable_online.sim
.../unique/arbitrator/offline_replica2_alterTable_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica2_alterTag_online.sim
...pt/unique/arbitrator/offline_replica2_alterTag_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica2_createTable_online.sim
...unique/arbitrator/offline_replica2_createTable_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica2_dropDb_online.sim
...ript/unique/arbitrator/offline_replica2_dropDb_online.sim
+1
-1
tests/script/unique/arbitrator/offline_replica2_dropTable_online.sim
...t/unique/arbitrator/offline_replica2_dropTable_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica3_alterTable_online.sim
.../unique/arbitrator/offline_replica3_alterTable_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica3_alterTag_online.sim
...pt/unique/arbitrator/offline_replica3_alterTag_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica3_createTable_online.sim
...unique/arbitrator/offline_replica3_createTable_online.sim
+2
-2
tests/script/unique/arbitrator/offline_replica3_dropDb_online.sim
...ript/unique/arbitrator/offline_replica3_dropDb_online.sim
+1
-1
tests/script/unique/arbitrator/offline_replica3_dropTable_online.sim
...t/unique/arbitrator/offline_replica3_dropTable_online.sim
+2
-2
tests/script/unique/arbitrator/replica_changeWithArbitrator.sim
...script/unique/arbitrator/replica_changeWithArbitrator.sim
+2
-2
tests/script/unique/arbitrator/sync_replica2_alterTable_add.sim
...script/unique/arbitrator/sync_replica2_alterTable_add.sim
+1
-1
tests/script/unique/arbitrator/sync_replica2_alterTable_drop.sim
...cript/unique/arbitrator/sync_replica2_alterTable_drop.sim
+1
-1
tests/script/unique/arbitrator/sync_replica2_dropDb.sim
tests/script/unique/arbitrator/sync_replica2_dropDb.sim
+1
-1
tests/script/unique/arbitrator/sync_replica2_dropTable.sim
tests/script/unique/arbitrator/sync_replica2_dropTable.sim
+1
-1
tests/script/unique/arbitrator/sync_replica3_alterTable_add.sim
...script/unique/arbitrator/sync_replica3_alterTable_add.sim
+1
-1
tests/script/unique/arbitrator/sync_replica3_alterTable_drop.sim
...cript/unique/arbitrator/sync_replica3_alterTable_drop.sim
+1
-1
tests/script/unique/arbitrator/sync_replica3_dropDb.sim
tests/script/unique/arbitrator/sync_replica3_dropDb.sim
+1
-1
tests/script/unique/arbitrator/sync_replica3_dropTable.sim
tests/script/unique/arbitrator/sync_replica3_dropTable.sim
+1
-1
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeDir.sim
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeDir.sim
+3
-3
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeVnodeDir.sim
...s/script/unique/migrate/mn2_vn2_repl2_rmMnodeVnodeDir.sim
+3
-3
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeVnodeDir_stopAll_starAll.sim
...migrate/mn2_vn2_repl2_rmMnodeVnodeDir_stopAll_starAll.sim
+1
-1
tests/script/unique/migrate/mn2_vn2_repl2_rmVnodeDir.sim
tests/script/unique/migrate/mn2_vn2_repl2_rmVnodeDir.sim
+1
-1
未找到文件。
src/sync/src/syncMain.c
浏览文件 @
cf87f800
...
@@ -1255,6 +1255,9 @@ static void syncProcessBrokenLink(int64_t rid) {
...
@@ -1255,6 +1255,9 @@ static void syncProcessBrokenLink(int64_t rid) {
sDebug
(
"%s, TCP link is broken since %s, pfd:%d sfd:%d"
,
pPeer
->
id
,
strerror
(
errno
),
pPeer
->
peerFd
,
pPeer
->
syncFd
);
sDebug
(
"%s, TCP link is broken since %s, pfd:%d sfd:%d"
,
pPeer
->
id
,
strerror
(
errno
),
pPeer
->
peerFd
,
pPeer
->
syncFd
);
pPeer
->
peerFd
=
-
1
;
pPeer
->
peerFd
=
-
1
;
if
(
pPeer
->
isArb
)
{
tsArbOnline
=
0
;
}
syncRestartConnection
(
pPeer
);
syncRestartConnection
(
pPeer
);
pthread_mutex_unlock
(
&
pNode
->
mutex
);
pthread_mutex_unlock
(
&
pNode
->
mutex
);
...
...
tests/script/issue/TD-2680.sim
0 → 100644
浏览文件 @
cf87f800
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c numOfMnodes -v 1
system sh/cfg.sh -n dnode2 -c numOfMnodes -v 1
system sh/cfg.sh -n dnode3 -c numOfMnodes -v 1
system sh/cfg.sh -n dnode4 -c numOfMnodes -v 1
system sh/cfg.sh -n dnode1 -c walLevel -v 2
system sh/cfg.sh -n dnode2 -c walLevel -v 2
system sh/cfg.sh -n dnode3 -c walLevel -v 2
system sh/cfg.sh -n dnode4 -c walLevel -v 2
system sh/cfg.sh -n dnode1 -c balanceInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceInterval -v 10
system sh/cfg.sh -n dnode3 -c balanceInterval -v 10
system sh/cfg.sh -n dnode4 -c balanceInterval -v 10
system sh/cfg.sh -n dnode1 -c role -v 1
system sh/cfg.sh -n dnode2 -c role -v 2
system sh/cfg.sh -n dnode3 -c role -v 2
system sh/cfg.sh -n dnode4 -c role -v 2
system sh/cfg.sh -n dnode1 -c arbitrator -v $arbitrator
system sh/cfg.sh -n dnode2 -c arbitrator -v $arbitrator
system sh/cfg.sh -n dnode3 -c arbitrator -v $arbitrator
system sh/cfg.sh -n dnode4 -c arbitrator -v $arbitrator
print ============== step0
system sh/exec_tarbitrator.sh -s start
print ============== step1
system sh/exec.sh -n dnode1 -s start
sql connect
sql create dnode $hostname2
sql create dnode $hostname3
system sh/exec.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
$x = 0
step1:
$x = $x + 1
sleep 1000
if $x == 10 then
return -1
endi
sql show dnodes
print dnode1 $data4_1
print dnode2 $data4_2
print dnode3 $data4_3
if $data4_1 != ready then
goto step1
endi
if $data4_2 != ready then
goto step1
endi
if $data4_3 != ready then
goto step1
endi
sql show mnodes
print mnode1 $data2_1
print mnode1 $data2_2
print mnode1 $data2_3
if $data2_1 != master then
goto step1
endi
print ============== step2
sql show dnodes
if $rows != 4 then
return -1
endi
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07
print $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17
print $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27
print $data30 $data31 $data32 $data33 $data34 $data35 $data36 $data37
if $data30 != 0 then
return -1
endi
if $data32 != 0 then
return -1
endi
if $data33 != 0 then
return -1
endi
if $data34 != ready then
return -1
endi
if $data35 != arb then
return -1
endi
if $data37 != - then
return -1
endi
print ============== step4
system sh/exec_tarbitrator.sh -s stop
$x = 0
step4:
$x = $x + 1
sleep 1000
if $x == 20 then
return -1
endi
sql show dnodes
if $rows != 4 then
return -1
endi
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07
print $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17
print $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27
print $data30 $data31 $data32 $data33 $data34 $data35 $data36 $data37
if $data30 != 0 then
return -1
endi
if $data32 != 0 then
return -1
endi
if $data33 != 0 then
return -1
endi
if $data34 != offline then
goto step4
endi
if $data35 != arb then
return -1
endi
if $data37 != - then
return -1
endi
print ============== step5
system sh/exec_tarbitrator.sh -s start
$x = 0
step5:
$x = $x + 1
sleep 1000
if $x == 20 then
return -1
endi
sql show dnodes
if $rows != 4 then
return -1
endi
print $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07
print $data10 $data11 $data12 $data13 $data14 $data15 $data16 $data17
print $data20 $data21 $data22 $data23 $data24 $data25 $data26 $data27
print $data30 $data31 $data32 $data33 $data34 $data35 $data36 $data37
if $data30 != 0 then
return -1
endi
if $data32 != 0 then
return -1
endi
if $data33 != 0 then
return -1
endi
if $data34 != ready then
goto step5
endi
if $data35 != arb then
return -1
endi
if $data37 != - then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT
tests/script/issue/TD-2713.sim
浏览文件 @
cf87f800
...
@@ -143,7 +143,3 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT
...
@@ -143,7 +143,3 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT
system sh/exec.sh -n dnode5 -s stop -x SIGINT
system sh/exec.sh -n dnode6 -s stop -x SIGINT
system sh/exec.sh -n dnode7 -s stop -x SIGINT
system sh/exec.sh -n dnode8 -s stop -x SIGINT
\ No newline at end of file
tests/script/jenkins/basic.txt
浏览文件 @
cf87f800
cd ../../../debug; cmake ..
cd ../../../debug; cmake ..
cd ../../../debug; make
cd ../../../debug; make
./test.sh -f issue/TD-2680.sim
./test.sh -f issue/TD-2713.sim
./test.sh -f issue/TD-2713.sim
./test.sh -f general/alter/cached_schema_after_alter.sim
./test.sh -f general/alter/cached_schema_after_alter.sim
...
...
tests/script/unique/arbitrator/check_cluster_cfg_para.sim
浏览文件 @
cf87f800
...
@@ -115,7 +115,7 @@ if $loopCnt == 10 then
...
@@ -115,7 +115,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
7
then
if $rows !=
8
then
sleep 2000
sleep 2000
goto wait_dnode_created
goto wait_dnode_created
endi
endi
...
@@ -172,7 +172,7 @@ print $data0_4 $data1_4 $data2_4 $data3_4 $data4_4
...
@@ -172,7 +172,7 @@ print $data0_4 $data1_4 $data2_4 $data3_4 $data4_4
print $data0_5 $data1_5 $data2_5 $data3_5 $data4_5
print $data0_5 $data1_5 $data2_5 $data3_5 $data4_5
print $data0_6 $data1_6 $data2_6 $data3_6 $data4_6
print $data0_6 $data1_6 $data2_6 $data3_6 $data4_6
print $data0_7 $data1_7 $data2_7 $data3_7 $data4_7
print $data0_7 $data1_7 $data2_7 $data3_7 $data4_7
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode_offline_overtime_dropped
goto wait_dnode_offline_overtime_dropped
endi
endi
...
...
tests/script/unique/arbitrator/dn3_mn1_r2_vnode_delDir.sim
浏览文件 @
cf87f800
...
@@ -103,7 +103,7 @@ if $loopCnt == 10 then
...
@@ -103,7 +103,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode3_offline_0
goto wait_dnode3_offline_0
endi
endi
...
@@ -170,7 +170,7 @@ if $loopCnt == 10 then
...
@@ -170,7 +170,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode3_reready
goto wait_dnode3_reready
endi
endi
...
@@ -237,7 +237,7 @@ if $loopCnt == 10 then
...
@@ -237,7 +237,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode2_offline
goto wait_dnode2_offline
endi
endi
...
@@ -282,7 +282,7 @@ if $loopCnt == 10 then
...
@@ -282,7 +282,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode2_reready
goto wait_dnode2_reready
endi
endi
...
...
tests/script/unique/arbitrator/dn3_mn1_r3_vnode_delDir.sim
浏览文件 @
cf87f800
...
@@ -105,7 +105,7 @@ if $loopCnt == 10 then
...
@@ -105,7 +105,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -172,7 +172,7 @@ if $loopCnt == 10 then
...
@@ -172,7 +172,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_reready
goto wait_dnode4_reready
endi
endi
...
@@ -239,7 +239,7 @@ if $loopCnt == 10 then
...
@@ -239,7 +239,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode23_offline
goto wait_dnode23_offline
endi
endi
...
@@ -283,7 +283,7 @@ if $loopCnt == 10 then
...
@@ -283,7 +283,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode23_reready
goto wait_dnode23_reready
endi
endi
...
...
tests/script/unique/arbitrator/dn3_mn1_replica_change_dropDnod.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $loopCnt == 10 then
...
@@ -107,7 +107,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_dropped
goto wait_dnode4_dropped
endi
endi
...
...
tests/script/unique/arbitrator/dn3_mn1_vnode_delDir.sim
浏览文件 @
cf87f800
...
@@ -106,7 +106,7 @@ if $loopCnt == 10 then
...
@@ -106,7 +106,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -167,7 +167,7 @@ if $loopCnt == 10 then
...
@@ -167,7 +167,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_reready
goto wait_dnode4_reready
endi
endi
...
@@ -227,7 +227,7 @@ if $loopCnt == 10 then
...
@@ -227,7 +227,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode3_offline
goto wait_dnode3_offline
endi
endi
...
@@ -267,7 +267,7 @@ if $loopCnt == 10 then
...
@@ -267,7 +267,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode3_reready
goto wait_dnode3_reready
endi
endi
...
@@ -343,7 +343,7 @@ if $loopCnt == 10 then
...
@@ -343,7 +343,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode2_offline
goto wait_dnode2_offline
endi
endi
...
@@ -383,7 +383,7 @@ if $loopCnt == 10 then
...
@@ -383,7 +383,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode2_reready
goto wait_dnode2_reready
endi
endi
...
...
tests/script/unique/arbitrator/dn3_mn1_vnode_noCorruptFile_offline.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $loopCnt == 10 then
...
@@ -107,7 +107,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode3_offline_0
goto wait_dnode3_offline_0
endi
endi
...
@@ -198,7 +198,7 @@ if $loopCnt == 10 then
...
@@ -198,7 +198,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode3_reready
goto wait_dnode3_reready
endi
endi
...
@@ -276,7 +276,7 @@ if $loopCnt == 10 then
...
@@ -276,7 +276,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode2_offline_0
goto wait_dnode2_offline_0
endi
endi
...
@@ -357,7 +357,7 @@ if $loopCnt == 10 then
...
@@ -357,7 +357,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode23_reready_2
goto wait_dnode23_reready_2
endi
endi
...
...
tests/script/unique/arbitrator/dn3_mn1_vnode_nomaster.sim
浏览文件 @
cf87f800
...
@@ -110,7 +110,7 @@ if $loopCnt == 10 then
...
@@ -110,7 +110,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -219,7 +219,7 @@ if $loopCnt == 10 then
...
@@ -219,7 +219,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode3_offline_0
goto wait_dnode3_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/insert_duplicationTs.sim
浏览文件 @
cf87f800
...
@@ -132,7 +132,7 @@ if $loopCnt == 10 then
...
@@ -132,7 +132,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode2_offline
goto wait_dnode2_offline
endi
endi
...
@@ -190,7 +190,7 @@ if $loopCnt == 10 then
...
@@ -190,7 +190,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode2_ready
goto wait_dnode2_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica2_alterTable_online.sim
浏览文件 @
cf87f800
...
@@ -108,7 +108,7 @@ if $loopCnt == 10 then
...
@@ -108,7 +108,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -174,7 +174,7 @@ if $loopCnt == 10 then
...
@@ -174,7 +174,7 @@ if $loopCnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica2_alterTag_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -204,7 +204,7 @@ if $cnt == 20 then
...
@@ -204,7 +204,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica2_createTable_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -190,7 +190,7 @@ if $cnt == 20 then
...
@@ -190,7 +190,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica2_dropDb_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica2_dropTable_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -176,7 +176,7 @@ if $cnt == 20 then
...
@@ -176,7 +176,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica3_alterTable_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -178,7 +178,7 @@ if $cnt == 20 then
...
@@ -178,7 +178,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica3_alterTag_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -204,7 +204,7 @@ if $cnt == 20 then
...
@@ -204,7 +204,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica3_createTable_online.sim
浏览文件 @
cf87f800
...
@@ -108,7 +108,7 @@ if $cnt == 20 then
...
@@ -108,7 +108,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -191,7 +191,7 @@ if $cnt == 20 then
...
@@ -191,7 +191,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica3_dropDb_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/offline_replica3_dropTable_online.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
@@ -176,7 +176,7 @@ if $cnt == 20 then
...
@@ -176,7 +176,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_ready
goto wait_dnode4_ready
endi
endi
...
...
tests/script/unique/arbitrator/replica_changeWithArbitrator.sim
浏览文件 @
cf87f800
...
@@ -115,7 +115,7 @@ if $cnt == 20 then
...
@@ -115,7 +115,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode2_ready
goto wait_dnode2_ready
endi
endi
...
@@ -161,7 +161,7 @@ if $cnt == 10 then
...
@@ -161,7 +161,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode_ready
goto wait_dnode_ready
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica2_alterTable_add.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica2_alterTable_drop.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica2_dropDb.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica2_dropTable.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
3
then
if $rows !=
4
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica3_alterTable_add.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica3_alterTable_drop.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
...
@@ -107,7 +107,7 @@ if $cnt == 20 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica3_dropDb.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/arbitrator/sync_replica3_dropTable.sim
浏览文件 @
cf87f800
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
...
@@ -107,7 +107,7 @@ if $cnt == 10 then
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
4
then
if $rows !=
5
then
sleep 2000
sleep 2000
goto wait_dnode4_offline_0
goto wait_dnode4_offline_0
endi
endi
...
...
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeDir.sim
浏览文件 @
cf87f800
...
@@ -112,7 +112,7 @@ if $loopCnt == 10 then
...
@@ -112,7 +112,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode1_offline
goto wait_dnode1_offline
endi
endi
...
@@ -159,7 +159,7 @@ if $loopCnt == 20 then
...
@@ -159,7 +159,7 @@ if $loopCnt == 20 then
endi
endi
sql show dnodes -x wait_dnode1_ready
sql show dnodes -x wait_dnode1_ready
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode1_ready
goto wait_dnode1_ready
endi
endi
...
@@ -238,7 +238,7 @@ if $loopCnt == 10 then
...
@@ -238,7 +238,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode2_offline
goto wait_dnode2_offline
endi
endi
...
...
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeVnodeDir.sim
浏览文件 @
cf87f800
...
@@ -112,7 +112,7 @@ if $loopCnt == 10 then
...
@@ -112,7 +112,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode1_offline
goto wait_dnode1_offline
endi
endi
...
@@ -161,7 +161,7 @@ if $loopCnt == 20 then
...
@@ -161,7 +161,7 @@ if $loopCnt == 20 then
endi
endi
sql show dnodes -x wait_dnode1_ready
sql show dnodes -x wait_dnode1_ready
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode1_ready
goto wait_dnode1_ready
endi
endi
...
@@ -234,7 +234,7 @@ if $loopCnt == 10 then
...
@@ -234,7 +234,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode2_offline
goto wait_dnode2_offline
endi
endi
...
...
tests/script/unique/migrate/mn2_vn2_repl2_rmMnodeVnodeDir_stopAll_starAll.sim
浏览文件 @
cf87f800
...
@@ -126,7 +126,7 @@ if $loopCnt == 20 then
...
@@ -126,7 +126,7 @@ if $loopCnt == 20 then
endi
endi
sql show dnodes -x wait_dnode1_ready
sql show dnodes -x wait_dnode1_ready
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode1_ready
goto wait_dnode1_ready
endi
endi
...
...
tests/script/unique/migrate/mn2_vn2_repl2_rmVnodeDir.sim
浏览文件 @
cf87f800
...
@@ -112,7 +112,7 @@ if $loopCnt == 10 then
...
@@ -112,7 +112,7 @@ if $loopCnt == 10 then
endi
endi
sql show dnodes
sql show dnodes
if $rows !=
2
then
if $rows !=
3
then
sleep 2000
sleep 2000
goto wait_dnode1_offline
goto wait_dnode1_offline
endi
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录