From f69f1bb1dc6cfb13f41abb6125672b099c4cc8b0 Mon Sep 17 00:00:00 2001 From: tomchon Date: Tue, 26 Jul 2022 16:51:52 +0800 Subject: [PATCH] tdSql.query("show dnodes") --- tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py | 2 +- tests/system-test/6-cluster/clusterCommonCheck.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py b/tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py index 7cef9cc396..48ee90fad2 100644 --- a/tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py +++ b/tests/system-test/6-cluster/5dnode3mnodeRecreateMnode.py @@ -144,7 +144,7 @@ class TDTestCase: # recreate mnode tdSql.execute("drop dnode 2;") - tdSql.execute('create dnode "chenhaoran02:6130";') + tdSql.execute('create dnode "%s:6130";'%self.host) tdDnodes=cluster.dnodes tdDnodes[1].stoptaosd() tdDnodes[1].deploy() diff --git a/tests/system-test/6-cluster/clusterCommonCheck.py b/tests/system-test/6-cluster/clusterCommonCheck.py index 992d77b03b..3033914f0b 100644 --- a/tests/system-test/6-cluster/clusterCommonCheck.py +++ b/tests/system-test/6-cluster/clusterCommonCheck.py @@ -55,6 +55,7 @@ class ClusterComCheck: count+=1 time.sleep(1) else: + tdSql.query("show dnodes") tdLog.debug(tdSql.queryResult) tdLog.exit("it find cluster with %d dnodes but check that there dnodes are not ready within 30s ! "%dnodeNumbers)