test:add testcase of rsma

This commit is contained in:
chenhaoran 2023-11-14 14:56:05 +08:00
parent 383e00b709
commit 952d8d188b
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
"drop": "yes",
"replica": 1,
"duration": 10,
"vgroups": 1,
"vgroups": 2,
"precision": "ms",
"keep": 3650,
"minRows": 100,

View File

@ -244,7 +244,7 @@ class ClusterComCheck:
else:
tdLog.exit(f"vgroup number of {db_name} is not correct")
if self.db_replica == 1 :
if tdSql.queryResult[0][4] == 'leader' and tdSql.queryResult[1][4] == 'leader' and tdSql.queryResult[last_number][4] == 'leader':
if tdSql.queryResult[0][4] == 'leader' and tdSql.queryResult[last_number][4] == 'leader':
tdSql.query(f"select `replica` from information_schema.ins_databases where `name`='{db_name}';")
print("db replica :",tdSql.queryResult[0][0])
if tdSql.queryResult[0][0] == db_replica: