Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
997089f6
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
997089f6
编写于
11月 17, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: adjust unstable case
上级
7b33c872
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
69 addition
and
12 deletion
+69
-12
tests/script/tsim/mnode/basic5.sim
tests/script/tsim/mnode/basic5.sim
+69
-12
未找到文件。
tests/script/tsim/mnode/basic5.sim
浏览文件 @
997089f6
...
@@ -206,7 +206,6 @@ endi
...
@@ -206,7 +206,6 @@ endi
print =============== step8: stop mnode1 and drop it
print =============== step8: stop mnode1 and drop it
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
sql_error drop mnode on dnode 1
$x = 0
$x = 0
step81:
step81:
...
@@ -234,42 +233,100 @@ if $leaderNum != 1 then
...
@@ -234,42 +233,100 @@ if $leaderNum != 1 then
endi
endi
print =============== step9: start mnode1 and wait it dropped
print =============== step9: start mnode1 and wait it dropped
system sh/exec.sh -n dnode1 -s start
print check mnode has leader step9a
sql drop mnode on dnode 1 -x step90
$x = 0
step90:
step9a:
$x = $x + 1
sleep 1000
if $x == 10 then
return -1
endi
print check mnode leader
sql select * from information_schema.ins_mnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
$leaderNum = 0
if $data(1)[2] == leader then
$leaderNum = 1
endi
if $data(2)[2] == leader then
$leaderNum = 1
endi
if $data(3)[2] == leader then
$leaderNum = 1
endi
if $leaderNum != 1 then
goto step9a
endi
print start dnode1 step9b
system sh/exec.sh -n dnode1 -s start
$x = 0
$x = 0
step9
1
:
step9
b
:
$x = $x + 1
$x = $x + 1
sleep 1000
sleep 1000
if $x == 10 then
if $x == 10 then
return -1
return -1
endi
endi
print check dnode1 ready
sql select * from information_schema.ins_dnodes
sql select * from information_schema.ins_dnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
print ===> $data20 $data21 $data22 $data23 $data24 $data25
print ===> $data30 $data31 $data32 $data33 $data34 $data35
print ===> $data30 $data31 $data32 $data33 $data34 $data35
if $data(1)[4] != ready then
if $data(1)[4] != ready then
goto step9
1
goto step9
b
endi
endi
if $data(2)[4] != ready then
if $data(2)[4] != ready then
goto step9
1
goto step9
b
endi
endi
if $data(3)[4] != ready then
if $data(3)[4] != ready then
goto step9
1
goto step9
b
endi
endi
if $data(4)[4] != ready then
if $data(4)[4] != ready then
goto step9
1
goto step9
b
endi
endi
sleep 4000
print check mnode has leader step9c
$x = 0
step9c:
$x = $x + 1
sleep 1000
if $x == 10 then
return -1
endi
print check mnode leader
sql select * from information_schema.ins_mnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data20 $data21 $data22 $data23 $data24 $data25
$leaderNum = 0
if $data(1)[2] == leader then
$leaderNum = 1
endi
if $data(2)[2] == leader then
$leaderNum = 1
endi
if $data(3)[2] == leader then
$leaderNum = 1
endi
if $leaderNum != 1 then
goto step9c
endi
print drop mnode step9d
sql drop mnode on dnode 1
$x = 0
$x = 0
step9
2
:
step9
d
:
$x = $x + 1
$x = $x + 1
sleep 1000
sleep 1000
if $x == 20 then
if $x == 20 then
return -1
return -1
endi
endi
print check mnode leader
sql select * from information_schema.ins_mnodes
sql select * from information_schema.ins_mnodes
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data00 $data01 $data02 $data03 $data04 $data05
print ===> $data10 $data11 $data12 $data13 $data14 $data15
print ===> $data10 $data11 $data12 $data13 $data14 $data15
...
@@ -285,10 +342,10 @@ if $data(3)[2] == leader then
...
@@ -285,10 +342,10 @@ if $data(3)[2] == leader then
$leaderNum = 1
$leaderNum = 1
endi
endi
if $leaderNum != 1 then
if $leaderNum != 1 then
goto step9
2
goto step9
d
endi
endi
if $rows != 2 then
if $rows != 2 then
goto step9
2
goto step9
d
endi
endi
print =============== stepa: create mnode1 again
print =============== stepa: create mnode1 again
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录