fix: add show cluster machines
This commit is contained in:
parent
9a0c402c11
commit
fbc5699215
|
@ -117,6 +117,9 @@ class TDTestCase(TBase):
|
||||||
sql = "SHOW COMPACT 1;"
|
sql = "SHOW COMPACT 1;"
|
||||||
tdSql.query(sql)
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
|
sql = "SHOW CLUSTER MACHINES;"
|
||||||
|
tdSql.query(sql)
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
# run to check crash
|
# run to check crash
|
||||||
sqls = [
|
sqls = [
|
||||||
|
|
|
@ -91,10 +91,12 @@ class TDTestCase(TBase):
|
||||||
break
|
break
|
||||||
self.trimDb(True)
|
self.trimDb(True)
|
||||||
tdLog.info(f"loop={loop} no upload {cnt} data files wait 3s retry ...")
|
tdLog.info(f"loop={loop} no upload {cnt} data files wait 3s retry ...")
|
||||||
|
'''
|
||||||
if loop == 0:
|
if loop == 0:
|
||||||
sc.dnodeStop(1)
|
sc.dnodeStop(1)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
sc.dnodeStart(1)
|
sc.dnodeStart(1)
|
||||||
|
'''
|
||||||
loop += 1
|
loop += 1
|
||||||
|
|
||||||
if len(rets) > 0:
|
if len(rets) > 0:
|
||||||
|
|
|
@ -171,6 +171,7 @@ SWords shellCommands[] = {
|
||||||
{"show compacts;", 0, 0, NULL},
|
{"show compacts;", 0, 0, NULL},
|
||||||
{"show cluster;", 0, 0, NULL},
|
{"show cluster;", 0, 0, NULL},
|
||||||
{"show cluster alive;", 0, 0, NULL},
|
{"show cluster alive;", 0, 0, NULL},
|
||||||
|
{"show cluster machines;", 0, 0, NULL},
|
||||||
{"show databases;", 0, 0, NULL},
|
{"show databases;", 0, 0, NULL},
|
||||||
{"show dnodes;", 0, 0, NULL},
|
{"show dnodes;", 0, 0, NULL},
|
||||||
{"show dnode <dnode_id> variables;", 0, 0, NULL},
|
{"show dnode <dnode_id> variables;", 0, 0, NULL},
|
||||||
|
@ -519,6 +520,7 @@ void showHelp() {
|
||||||
show connections;\n\
|
show connections;\n\
|
||||||
show cluster;\n\
|
show cluster;\n\
|
||||||
show cluster alive;\n\
|
show cluster alive;\n\
|
||||||
|
show cluster machines;\n\
|
||||||
show databases;\n\
|
show databases;\n\
|
||||||
show dnodes;\n\
|
show dnodes;\n\
|
||||||
show dnode <dnode_id> variables;\n\
|
show dnode <dnode_id> variables;\n\
|
||||||
|
|
Loading…
Reference in New Issue