From fbc5699215b0d690ac2cecd85f97c92548efc01b Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 27 Feb 2024 09:13:56 +0800 Subject: [PATCH] fix: add show cluster machines --- tests/army/community/query/show.py | 3 +++ tests/army/enterprise/s3/s3_basic.py | 2 ++ tools/shell/src/shellAuto.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/tests/army/community/query/show.py b/tests/army/community/query/show.py index d1bc1d9934..8b6844820e 100644 --- a/tests/army/community/query/show.py +++ b/tests/army/community/query/show.py @@ -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 = [ diff --git a/tests/army/enterprise/s3/s3_basic.py b/tests/army/enterprise/s3/s3_basic.py index 7071c678a4..c255ca3bb1 100644 --- a/tests/army/enterprise/s3/s3_basic.py +++ b/tests/army/enterprise/s3/s3_basic.py @@ -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: diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index 0a2ce4f316..b6917e5a76 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -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 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 variables;\n\