fix: add show cluster machines

This commit is contained in:
Alex Duan 2024-02-27 09:13:56 +08:00
parent 9a0c402c11
commit fbc5699215
3 changed files with 7 additions and 0 deletions

View File

@ -117,6 +117,9 @@ class TDTestCase(TBase):
sql = "SHOW COMPACT 1;"
tdSql.query(sql)
tdSql.checkRows(0)
sql = "SHOW CLUSTER MACHINES;"
tdSql.query(sql)
tdSql.checkRows(1)
# run to check crash
sqls = [

View File

@ -91,10 +91,12 @@ class TDTestCase(TBase):
break
self.trimDb(True)
tdLog.info(f"loop={loop} no upload {cnt} data files wait 3s retry ...")
'''
if loop == 0:
sc.dnodeStop(1)
time.sleep(2)
sc.dnodeStart(1)
'''
loop += 1
if len(rets) > 0:

View File

@ -171,6 +171,7 @@ SWords shellCommands[] = {
{"show compacts;", 0, 0, NULL},
{"show cluster;", 0, 0, NULL},
{"show cluster alive;", 0, 0, NULL},
{"show cluster machines;", 0, 0, NULL},
{"show databases;", 0, 0, NULL},
{"show dnodes;", 0, 0, NULL},
{"show dnode <dnode_id> variables;", 0, 0, NULL},
@ -519,6 +520,7 @@ void showHelp() {
show connections;\n\
show cluster;\n\
show cluster alive;\n\
show cluster machines;\n\
show databases;\n\
show dnodes;\n\
show dnode <dnode_id> variables;\n\