未验证 提交 b6e28c13 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #8894 from taosdata/hotfix/TD-11700-develop

[TD-11700]<fix> Deal with the probabilistic failure of unique/dnode/alternativeRole.sim
...@@ -30,35 +30,50 @@ sql create dnode $hostname2 ...@@ -30,35 +30,50 @@ sql create dnode $hostname2
system sh/exec.sh -n dnode2 -s start system sh/exec.sh -n dnode2 -s start
sql create dnode $hostname3 sql create dnode $hostname3
system sh/exec.sh -n dnode3 -s start system sh/exec.sh -n dnode3 -s start
sleep 5000 sleep 3000
$x = 0
show1:
$x = $x + 1
sleep 1000
if $x == 30 then
return -1
endi
sql show dnodes sql show dnodes
print dnode1 $data5_1 print dnode1 $data5_1
print dnode1 $data5_2 print dnode2 $data5_2
print dnode1 $data5_3 print dnode3 $data5_3
if $data5_1 != mnode then if $data5_1 != mnode then
return -1 goto show1
endi endi
if $data5_2 != vnode then if $data5_2 != vnode then
return -1 goto show1
endi endi
if $data5_3 != any then if $data5_3 != any then
return -1 goto show1
endi endi
show2:
$x = $x + 1
sleep 1000
if $x == 30 then
return -1
endi
sql show mnodes sql show mnodes
print dnode1 ==> $data2_1 print dnode1 ==> $data2_1
print dnode2 ==> $data2_2 print dnode2 ==> $data2_2
print dnode3 ==> $data2_3 print dnode3 ==> $data2_3
if $data2_1 != master then if $data2_1 != master then
return -1 goto show2
endi endi
if $data2_2 != null then if $data2_2 != null then
return -1 goto show2
endi endi
if $data2_3 != slave then if $data2_3 != slave then
return -1 goto show2
endi endi
print ========== step2 print ========== step2
...@@ -72,26 +87,28 @@ sql create table d1.t6 (ts timestamp, i int) ...@@ -72,26 +87,28 @@ sql create table d1.t6 (ts timestamp, i int)
sql create table d1.t7 (ts timestamp, i int) sql create table d1.t7 (ts timestamp, i int)
sql create table d1.t8 (ts timestamp, i int) sql create table d1.t8 (ts timestamp, i int)
show3:
$x = $x + 1
sleep 1000
if $x == 30 then
return -1
endi
sql show dnodes sql show dnodes
print dnode1 $data2_1 print dnode1 $data2_1
print dnode2 $data2_2 print dnode2 $data2_2
print dnode3 $data2_3 print dnode3 $data2_3
if $data2_1 != 0 then if $data2_1 != 0 then
return -1 goto show3
endi endi
if $data2_2 != 1 then if $data2_2 != 1 then
return -1 goto show3
endi endi
if $data2_3 != 1 then if $data2_3 != 1 then
return -1 goto show3
endi endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT 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 \ No newline at end of file
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册