Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5539b262
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
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看板
提交
5539b262
编写于
7月 13, 2020
作者:
H
Hui Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[modify]
上级
a08c7405
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
24 deletion
+20
-24
tests/script/unique/cluster/cluster_main.sim
tests/script/unique/cluster/cluster_main.sim
+20
-24
未找到文件。
tests/script/unique/cluster/cluster_main.sim
浏览文件 @
5539b262
...
@@ -69,14 +69,13 @@ sql use $db
...
@@ -69,14 +69,13 @@ sql use $db
print ============== step3: create stable stb1
print ============== step3: create stable stb1
$stb = stb1
$stb = stb1
print create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(16))
sql create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(8))
sql create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(16))
print ============== step4: start
others client
print ============== step4: start
10 client1/ 10 client2/ 10 client3/ 10 client4/ 1 client5
run_back unique/cluster/client1_0.sim
run_back unique/cluster/client1_0.sim
run_back unique/cluster/client1_1.sim
#
run_back unique/cluster/client1_1.sim
run_back unique/cluster/client1_2.sim
#
run_back unique/cluster/client1_2.sim
run_back unique/cluster/client1_3.sim
#
run_back unique/cluster/client1_3.sim
#run_back unique/cluster/client2_0.sim
#run_back unique/cluster/client2_0.sim
#run_back unique/cluster/client2_1.sim
#run_back unique/cluster/client2_1.sim
#run_back unique/cluster/client2_2.sim
#run_back unique/cluster/client2_2.sim
...
@@ -119,16 +118,14 @@ sql create dnode $hostname5
...
@@ -119,16 +118,14 @@ sql create dnode $hostname5
sleep 5000
sleep 5000
print ============== step6: stop
dnode1
print ============== step6: stop
and drop dnode1, then remove data dir of dnode1
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 10000
sleep 5000
#sql drop dnode $hostname1
sql drop dnode $hostname1
#sleep 5000
sleep 5000
#system rm -rf ../../../sim/dnode1/data
#sleep 20000
system rm -rf ../../../sim/dnode1/data
print ============== step6-1: restart dnode1
sleep 20000
system sh/exec.sh -n dnode1 -s start
sleep 10000
sql show mnodes
sql show mnodes
print show mnodes
print show mnodes
...
@@ -241,12 +238,11 @@ endi
...
@@ -241,12 +238,11 @@ endi
print ============== step14: stop and drop dnode4/dnode5, then remove data dir of dnode4/dnode5
print ============== step14: stop and drop dnode4/dnode5, then remove data dir of dnode4/dnode5
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 dnode5 -s stop -x SIGINT
sleep
3
000
sleep
20
000
sql drop dnode $hostname4
sql drop dnode $hostname4
sql drop dnode $hostname5
sql drop dnode $hostname5
system rm -rf ../../../sim/dnode4/data
system rm -rf ../../../sim/dnode4/data
system rm -rf ../../../sim/dnode5/data
system rm -rf ../../../sim/dnode5/data
sleep 20000
print ============== step15: alter replica 1
print ============== step15: alter replica 1
sql alter database $db replica 1
sql alter database $db replica 1
...
@@ -266,13 +262,13 @@ if $data04 != 2 then
...
@@ -266,13 +262,13 @@ if $data04 != 2 then
return -1
return -1
endi
endi
#
print ============== step17: start dnode1 and add into cluster, then wait dnode1 ready
print ============== step17: start dnode1 and add into cluster, then wait dnode1 ready
#
system sh/cfg.sh -n dnode1 -c first -v $hostname2
system sh/cfg.sh -n dnode1 -c first -v $hostname2
#
system sh/cfg.sh -n dnode1 -c second -v $hostname3
system sh/cfg.sh -n dnode1 -c second -v $hostname3
#
#
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode1 -s start
#
sql create dnode $hostname1
sql create dnode $hostname1
#
sleep 20000
sleep 20000
print ============== step18: alter replica 3
print ============== step18: alter replica 3
sql alter database $db replica 3
sql alter database $db replica 3
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录