Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
loser646
TDengine
提交
1260d409
T
TDengine
项目概览
loser646
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1260d409
编写于
4月 22, 2020
作者:
S
slguan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
script
上级
ac19d372
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
302 addition
and
302 deletion
+302
-302
tests/script/unique/dnode/balance1.sim
tests/script/unique/dnode/balance1.sim
+56
-56
tests/script/unique/dnode/balance2.sim
tests/script/unique/dnode/balance2.sim
+55
-55
tests/script/unique/dnode/balance3.sim
tests/script/unique/dnode/balance3.sim
+61
-61
tests/script/unique/dnode/balancex.sim
tests/script/unique/dnode/balancex.sim
+26
-26
tests/script/unique/dnode/monitor_bug.sim
tests/script/unique/dnode/monitor_bug.sim
+8
-8
tests/script/unique/dnode/offline1.sim
tests/script/unique/dnode/offline1.sim
+3
-3
tests/script/unique/dnode/offline2.sim
tests/script/unique/dnode/offline2.sim
+4
-4
tests/script/unique/dnode/remove1.sim
tests/script/unique/dnode/remove1.sim
+25
-25
tests/script/unique/dnode/remove2.sim
tests/script/unique/dnode/remove2.sim
+18
-18
tests/script/unique/dnode/vnode_clean.sim
tests/script/unique/dnode/vnode_clean.sim
+46
-46
未找到文件。
tests/script/unique/dnode/balance1.sim
浏览文件 @
1260d409
...
@@ -36,7 +36,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
...
@@ -36,7 +36,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sleep 3000
sleep 3000
...
@@ -49,15 +49,15 @@ sql insert into d1.t1 values(now+4s, 12)
...
@@ -49,15 +49,15 @@ sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql insert into d1.t1 values(now+5s, 11)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
if $data3_1
92.168.0.1 != 3
then
if $data3_1
!= 1
then
return -1
return -1
endi
endi
print ========== step2
print ========== step2
sleep 2000
sleep 2000
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
$x = 0
show2:
show2:
...
@@ -68,12 +68,12 @@ show2:
...
@@ -68,12 +68,12 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.2 != 3
then
if $data3_
2 != 1
then
goto show2
goto show2
endi
endi
...
@@ -87,12 +87,12 @@ sql insert into d2.t2 values(now+4s, 22)
...
@@ -87,12 +87,12 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
return -1
return -1
endi
endi
...
@@ -108,23 +108,23 @@ show4:
...
@@ -108,23 +108,23 @@ show4:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show4
goto show4
endi
endi
if $rows != 1 then
if $rows != 1 then
goto show4
goto show4
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step5
print ========== step5
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
$x = 0
$x = 0
show5:
show5:
...
@@ -135,16 +135,16 @@ show5:
...
@@ -135,16 +135,16 @@ show5:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show5
goto show5
endi
endi
...
@@ -158,23 +158,23 @@ sql insert into d3.t3 values(now+4s, 32)
...
@@ -158,23 +158,23 @@ sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
return -1
return -1
endi
endi
if $data3_
192.168.0.3 != 1
then
if $data3_
3 != 3
then
return -1
return -1
endi
endi
print ========== step7
print ========== step7
sql create dnode 192.168.0.4
sql create dnode 192.168.0.4
system sh/exec.sh -n dnode4 -s start
system sh/exec
_up
.sh -n dnode4 -s start
$x = 0
$x = 0
show7:
show7:
...
@@ -185,20 +185,20 @@ show7:
...
@@ -185,20 +185,20 @@ show7:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
goto show7
goto show7
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show7
goto show7
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show7
goto show7
endi
endi
if $data3_
192.168.0.4 != 3
then
if $data3_
4 != 1
then
goto show7
goto show7
endi
endi
...
@@ -212,21 +212,21 @@ sql insert into d4.t4 values(now+4s, 42)
...
@@ -212,21 +212,21 @@ sql insert into d4.t4 values(now+4s, 42)
sql insert into d4.t4 values(now+5s, 41)
sql insert into d4.t4 values(now+5s, 41)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
return -1
return -1
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
return -1
return -1
endi
endi
...
@@ -242,25 +242,25 @@ show9:
...
@@ -242,25 +242,25 @@ show9:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1 != 4
then
if $data3_1
!= 0
then
goto show9
goto show9
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show9
goto show9
endi
endi
if $data3_
192.168.0.
3 != null then
if $data3_3 != null then
goto show9
goto show9
endi
endi
if $data3_
192.168.0.4 != 0
then
if $data3_
4 != 4
then
goto show9
goto show9
endi
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode3 -s stop -x SIGINT
print ========== step10
print ========== step10
sql select * from d1.t1 order by t desc
sql select * from d1.t1 order by t desc
...
...
tests/script/unique/dnode/balance2.sim
浏览文件 @
1260d409
...
@@ -37,13 +37,13 @@ system sh/cfg.sh -n dnode4 -c clog -v 1
...
@@ -37,13 +37,13 @@ system sh/cfg.sh -n dnode4 -c clog -v 1
system sh/cfg.sh -n dnode5 -c clog -v 1
system sh/cfg.sh -n dnode5 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
sleep 3000
sleep 3000
sql create database d1 replica 2 tables 4
sql create database d1 replica 2 tables 4
...
@@ -63,16 +63,16 @@ sql insert into d2.t2 values(now+4s, 22)
...
@@ -63,16 +63,16 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
return -1
return -1
endi
endi
...
@@ -88,24 +88,24 @@ show2:
...
@@ -88,24 +88,24 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show2
goto show2
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step3
print ========== step3
sql create dnode 192.168.0.4
sql create dnode 192.168.0.4
system sh/exec.sh -n dnode4 -s start
system sh/exec
_up
.sh -n dnode4 -s start
$x = 0
$x = 0
show3:
show3:
...
@@ -116,20 +116,20 @@ show3:
...
@@ -116,20 +116,20 @@ show3:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
goto show3
goto show3
endi
endi
...
@@ -143,26 +143,26 @@ sql insert into d3.t3 values(now+4s, 32)
...
@@ -143,26 +143,26 @@ sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
return -1
return -1
endi
endi
if $data3_
192.168.0.
3 != 1 then
if $data3_3 != 1 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
4 != 1 then
if $data3_4 != 1 then
return -1
return -1
endi
endi
print ========== step5
print ========== step5
sql create dnode 192.168.0.5
sql create dnode 192.168.0.5
system sh/exec.sh -n dnode5 -s start
system sh/exec
_up
.sh -n dnode5 -s start
$x = 0
$x = 0
show5:
show5:
...
@@ -173,24 +173,24 @@ show5:
...
@@ -173,24 +173,24 @@ show5:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
print 192.168.0.5
freeVnodes $data3_192.168.0.
5
print 192.168.0.5
openVnodes $data3_
5
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
5 != 2 then
if $data3_5 != 2 then
goto show5
goto show5
endi
endi
...
@@ -206,28 +206,28 @@ show6:
...
@@ -206,28 +206,28 @@ show6:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
print 192.168.0.5
freeVnodes $data3_192.168.0.
5
print 192.168.0.5
openVnodes $data3_
5
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
3 != null then
if $data3_3 != null then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
4 != 1 then
if $data3_4 != 1 then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
5 != 1 then
if $data3_5 != 1 then
goto show6
goto show6
endi
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode3 -s stop -x SIGINT
print ========== step7
print ========== step7
sql select * from d1.t1 order by t desc
sql select * from d1.t1 order by t desc
...
...
tests/script/unique/dnode/balance3.sim
浏览文件 @
1260d409
...
@@ -43,15 +43,15 @@ system sh/cfg.sh -n dnode5 -c clog -v 1
...
@@ -43,15 +43,15 @@ system sh/cfg.sh -n dnode5 -c clog -v 1
system sh/cfg.sh -n dnode6 -c clog -v 1
system sh/cfg.sh -n dnode6 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
sql create dnode 192.168.0.4
sql create dnode 192.168.0.4
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
system sh/exec.sh -n dnode4 -s start
system sh/exec
_up
.sh -n dnode4 -s start
sleep 3000
sleep 3000
sql create database d1 replica 3 tables 4
sql create database d1 replica 3 tables 4
...
@@ -71,21 +71,21 @@ sql insert into d2.t2 values(now+4s, 22)
...
@@ -71,21 +71,21 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
return -1
return -1
endi
endi
...
@@ -101,29 +101,29 @@ show2:
...
@@ -101,29 +101,29 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
goto show2
goto show2
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step
print ========== step
sql create dnode 192.168.0.5
sql create dnode 192.168.0.5
system sh/exec.sh -n dnode5 -s start
system sh/exec
_up
.sh -n dnode5 -s start
$x = 0
$x = 0
show3:
show3:
...
@@ -134,25 +134,25 @@ show3:
...
@@ -134,25 +134,25 @@ show3:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
print 192.168.0.5
freeVnodes $data3_192.168.0.
5
print 192.168.0.5
openVnodes $data3_
5
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
5 != 2 then
if $data3_5 != 2 then
goto show3
goto show3
endi
endi
...
@@ -174,31 +174,31 @@ show4:
...
@@ -174,31 +174,31 @@ show4:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
print 192.168.0.5
freeVnodes $data3_192.168.0.
5
print 192.168.0.5
openVnodes $data3_
5
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
3 != 1 then
if $data3_3 != 1 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
4 != 1 then
if $data3_4 != 1 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
5 != 1 then
if $data3_5 != 1 then
goto show4
goto show4
endi
endi
print ========== step5
print ========== step5
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
$x = 0
show5:
show5:
...
@@ -209,16 +209,16 @@ show5:
...
@@ -209,16 +209,16 @@ show5:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
print 192.168.0.5
freeVnodes $data3_192.168.0.
5
print 192.168.0.5
openVnodes $data3_
5
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
goto show5
goto show5
endi
endi
...
@@ -236,29 +236,29 @@ show6:
...
@@ -236,29 +236,29 @@ show6:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
print 192.168.0.5
freeVnodes $data3_192.168.0.
5
print 192.168.0.5
openVnodes $data3_
5
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
2 != 1 then
if $data3_2 != 1 then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
3 != null then
if $data3_3 != null then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
4 != 1 then
if $data3_4 != 1 then
goto show6
goto show6
endi
endi
if $data3_
192.168.0.
5 != 1 then
if $data3_5 != 1 then
goto show6
goto show6
endi
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode3 -s stop -x SIGINT
print ========== step7
print ========== step7
sql select * from d1.t1 order by t desc
sql select * from d1.t1 order by t desc
...
...
tests/script/unique/dnode/balancex.sim
浏览文件 @
1260d409
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sleep 3000
sleep 3000
...
@@ -52,14 +52,14 @@ sql insert into d2.t2 values(now+4s, 22)
...
@@ -52,14 +52,14 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
return -1
return -1
endi
endi
print ========== step2
print ========== step2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
$x = 0
show2:
show2:
...
@@ -70,12 +70,12 @@ show2:
...
@@ -70,12 +70,12 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
goto show2
goto show2
endi
endi
...
@@ -96,18 +96,18 @@ show3:
...
@@ -96,18 +96,18 @@ show3:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
goto show3
goto show3
endi
endi
if $data3_
192.168.0.
2 != 1 then
if $data3_2 != 1 then
goto show3
goto show3
endi
endi
print ========== step3
print ========== step3
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
$x = 0
$x = 0
show4:
show4:
...
@@ -117,16 +117,16 @@ show4:
...
@@ -117,16 +117,16 @@ show4:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show4
goto show4
endi
endi
...
@@ -141,20 +141,20 @@ show5:
...
@@ -141,20 +141,20 @@ show5:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
3 != 1 then
if $data3_3 != 1 then
goto show5
goto show5
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step6
print ========== step6
sql select * from d1.t1 order by t desc
sql select * from d1.t1 order by t desc
...
...
tests/script/unique/dnode/monitor_bug.sim
浏览文件 @
1260d409
...
@@ -22,19 +22,19 @@ system sh/cfg.sh -n dnode1 -c monitor -v 1
...
@@ -22,19 +22,19 @@ system sh/cfg.sh -n dnode1 -c monitor -v 1
system sh/cfg.sh -n dnode2 -c monitor -v 0
system sh/cfg.sh -n dnode2 -c monitor -v 0
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sleep 5000
sleep 5000
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
return -1
return -1
endi
endi
print ========== step2
print ========== step2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
$x = 0
show2:
show2:
...
@@ -45,12 +45,12 @@ show2:
...
@@ -45,12 +45,12 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != 3 then
if $data3_2 != 3 then
goto show2
goto show2
endi
endi
...
...
tests/script/unique/dnode/offline1.sim
浏览文件 @
1260d409
...
@@ -29,10 +29,10 @@ system sh/cfg.sh -n dnode2 -c clog -v 1
...
@@ -29,10 +29,10 @@ system sh/cfg.sh -n dnode2 -c clog -v 1
system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode3 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
sleep 3000
sleep 3000
sql show dnodes
sql show dnodes
...
@@ -44,7 +44,7 @@ if $data4_192.168.0.2 != ready then
...
@@ -44,7 +44,7 @@ if $data4_192.168.0.2 != ready then
endi
endi
print ========== step2
print ========== step2
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
sleep 6000
sleep 6000
sql show dnodes
sql show dnodes
...
...
tests/script/unique/dnode/offline2.sim
浏览文件 @
1260d409
...
@@ -29,10 +29,10 @@ system sh/cfg.sh -n dnode2 -c clog -v 1
...
@@ -29,10 +29,10 @@ system sh/cfg.sh -n dnode2 -c clog -v 1
system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode3 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
sleep 3000
sleep 3000
sql create database d1 replica 2 tables 4
sql create database d1 replica 2 tables 4
...
@@ -48,7 +48,7 @@ if $data4_192.168.0.2 != ready then
...
@@ -48,7 +48,7 @@ if $data4_192.168.0.2 != ready then
endi
endi
print ========== step2
print ========== step2
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
sleep 5000
sleep 5000
sql show dnodes
sql show dnodes
...
@@ -72,7 +72,7 @@ endi
...
@@ -72,7 +72,7 @@ endi
print ========== step4
print ========== step4
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
sql drop dnode 192.168.0.2
sql drop dnode 192.168.0.2
sleep 5000
sleep 5000
...
...
tests/script/unique/dnode/remove1.sim
浏览文件 @
1260d409
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sleep 3000
sleep 3000
...
@@ -52,14 +52,14 @@ sql insert into d2.t2 values(now+4s, 22)
...
@@ -52,14 +52,14 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
return -1
return -1
endi
endi
print ========== step2
print ========== step2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
sleep 9000
sleep 9000
sql create database d3 replica 2 tables 4
sql create database d3 replica 2 tables 4
...
@@ -79,12 +79,12 @@ show2:
...
@@ -79,12 +79,12 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != 1 then
if $data3_2 != 1 then
goto show2
goto show2
endi
endi
...
@@ -101,12 +101,12 @@ show3:
...
@@ -101,12 +101,12 @@ show3:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2 $data5_192.168.0.2
print 192.168.0.2
openVnodes $data3_
2 $data5_192.168.0.2
print ========== step4
print ========== step4
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
$x = 0
$x = 0
show4:
show4:
...
@@ -117,18 +117,18 @@ show4:
...
@@ -117,18 +117,18 @@ show4:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show4
goto show4
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step5
print ========== step5
sql create dnode 192.168.0.4
sql create dnode 192.168.0.4
system sh/exec.sh -n dnode4 -s start
system sh/exec
_up
.sh -n dnode4 -s start
$x = 0
$x = 0
show5:
show5:
...
@@ -138,20 +138,20 @@ show5:
...
@@ -138,20 +138,20 @@ show5:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
print 192.168.0.4
freeVnodes $data3_192.168.0.
4
print 192.168.0.4
openVnodes $data3_
4
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
4 != 2 then
if $data3_4 != 2 then
goto show5
goto show5
endi
endi
...
...
tests/script/unique/dnode/remove2.sim
浏览文件 @
1260d409
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sleep 3000
sleep 3000
...
@@ -52,14 +52,14 @@ sql insert into d2.t2 values(now+4s, 22)
...
@@ -52,14 +52,14 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
return -1
return -1
endi
endi
print ========== step2
print ========== step2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
sleep 9000
sleep 9000
sql create database d3 replica 2 tables 4
sql create database d3 replica 2 tables 4
...
@@ -79,17 +79,17 @@ show2:
...
@@ -79,17 +79,17 @@ show2:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != 1 then
if $data3_2 != 1 then
goto show2
goto show2
endi
endi
print ========== step3
print ========== step3
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
sql drop dnode 192.168.0.2
sql drop dnode 192.168.0.2
sleep 7001
sleep 7001
...
@@ -102,12 +102,12 @@ show3:
...
@@ -102,12 +102,12 @@ show3:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2 $data5_192.168.0.2
print 192.168.0.2
openVnodes $data3_
2 $data5_192.168.0.2
print ========== step4
print ========== step4
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
$x = 0
$x = 0
show4:
show4:
...
@@ -118,16 +118,16 @@ show4:
...
@@ -118,16 +118,16 @@ show4:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show4
goto show4
endi
endi
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
3 != 1 then
if $data3_3 != 1 then
goto show4
goto show4
endi
endi
...
...
tests/script/unique/dnode/vnode_clean.sim
浏览文件 @
1260d409
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
...
@@ -31,7 +31,7 @@ system sh/cfg.sh -n dnode3 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
system sh/cfg.sh -n dnode4 -c clog -v 1
print ========== step1
print ========== step1
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sql connect
sql connect
sql create database d1 tables 4
sql create database d1 tables 4
...
@@ -43,14 +43,14 @@ sql insert into d1.t1 values(now+4s, 12)
...
@@ -43,14 +43,14 @@ sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql insert into d1.t1 values(now+5s, 11)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
if $data3_1
92.168.0.1
!= 3 then
if $data3_1 != 3 then
return -1
return -1
endi
endi
print ========== step2
print ========== step2
sql create dnode 192.168.0.2
sql create dnode 192.168.0.2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
$x = 0
show2:
show2:
...
@@ -60,12 +60,12 @@ show2:
...
@@ -60,12 +60,12 @@ show2:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show2
goto show2
endi
endi
if $data3_
192.168.0.
2 != 3 then
if $data3_2 != 3 then
goto show2
goto show2
endi
endi
...
@@ -81,12 +81,12 @@ sql insert into d2.t2 values(now+5s, 21)
...
@@ -81,12 +81,12 @@ sql insert into d2.t2 values(now+5s, 21)
$x = 0
$x = 0
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
return -1
return -1
endi
endi
...
@@ -101,19 +101,19 @@ show4:
...
@@ -101,19 +101,19 @@ show4:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 2 then
if $data3_1 != 2 then
goto show4
goto show4
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show4
goto show4
endi
endi
if $rows != 1 then
if $rows != 1 then
goto show4
goto show4
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step5
print ========== step5
sleep 2000
sleep 2000
...
@@ -125,7 +125,7 @@ system sh/cfg.sh -n dnode2 -c balanceMonitorInterval -v 1
...
@@ -125,7 +125,7 @@ system sh/cfg.sh -n dnode2 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode2 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode2 -c mgmtEqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c mgmtEqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c clog -v 1
system sh/cfg.sh -n dnode2 -c clog -v 1
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
$x = 0
show5:
show5:
...
@@ -135,12 +135,12 @@ show5:
...
@@ -135,12 +135,12 @@ show5:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show5
goto show5
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
goto show5
goto show5
endi
endi
...
@@ -154,18 +154,18 @@ sql insert into d3.t3 values(now+4s, 32)
...
@@ -154,18 +154,18 @@ sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
return -1
return -1
endi
endi
if $data3_
192.168.0.
2 != 1 then
if $data3_2 != 1 then
return -1
return -1
endi
endi
print ========== step7
print ========== step7
sql create dnode 192.168.0.3
sql create dnode 192.168.0.3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
$x = 0
$x = 0
show7:
show7:
...
@@ -176,16 +176,16 @@ show7:
...
@@ -176,16 +176,16 @@ show7:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show7
goto show7
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
goto show7
goto show7
endi
endi
if $data3_
192.168.0.
3 != 3 then
if $data3_3 != 3 then
goto show7
goto show7
endi
endi
...
@@ -206,16 +206,16 @@ show8:
...
@@ -206,16 +206,16 @@ show8:
return -1
return -1
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show8
goto show8
endi
endi
if $data3_
192.168.0.
2 != 2 then
if $data3_2 != 2 then
goto show8
goto show8
endi
endi
if $data3_
192.168.0.
3 != 2 then
if $data3_3 != 2 then
goto show8
goto show8
endi
endi
...
@@ -231,20 +231,20 @@ show9:
...
@@ -231,20 +231,20 @@ show9:
endi
endi
sql show dnodes
sql show dnodes
print 192.168.0.1
freeVnodes $data3_192.168.0.
1
print 192.168.0.1
openVnodes $data3_
1
print 192.168.0.2
freeVnodes $data3_192.168.0.
2
print 192.168.0.2
openVnodes $data3_
2
print 192.168.0.3
freeVnodes $data3_192.168.0.
3
print 192.168.0.3
openVnodes $data3_
3
if $data3_1
92.168.0.1
!= 4 then
if $data3_1 != 4 then
goto show9
goto show9
endi
endi
if $data3_
192.168.0.
2 != null then
if $data3_2 != null then
goto show9
goto show9
endi
endi
if $data3_
192.168.0.
3 != 0 then
if $data3_3 != 0 then
goto show9
goto show9
endi
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
print ========== step10
print ========== step10
sql select * from d1.t1 order by t desc
sql select * from d1.t1 order by t desc
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录