tdSql.query("show dnodes")

This commit is contained in:
tomchon 2022-07-26 16:51:52 +08:00
parent a9f4b09146
commit f69f1bb1dc
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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)