test: temp test case
This commit is contained in:
parent
fe568766ef
commit
5044b89deb
|
@ -235,28 +235,28 @@ class TDTestCase:
|
||||||
if (0 == existFlag):
|
if (0 == existFlag):
|
||||||
groupIdList.append(groupId)
|
groupIdList.append(groupId)
|
||||||
|
|
||||||
# kill taosBenchmark
|
# # kill taosBenchmark
|
||||||
os.system("pkill -9 taosBenchmark")
|
# os.system("pkill -9 taosBenchmark")
|
||||||
|
|
||||||
# wait the status to "lost"
|
# # wait the status to "lost"
|
||||||
while (1):
|
# while (1):
|
||||||
exitFlag = 1
|
# exitFlag = 1
|
||||||
tdSql.query('show consumers;')
|
# tdSql.query('show consumers;')
|
||||||
consumerNUm = tdSql.queryRows
|
# consumerNUm = tdSql.queryRows
|
||||||
for i in range(consumerNUm):
|
# for i in range(consumerNUm):
|
||||||
status = tdSql.getData(i,3)
|
# status = tdSql.getData(i,3)
|
||||||
if (status != "lost"):
|
# if (status != "lost"):
|
||||||
exitFlag = 0
|
# exitFlag = 0
|
||||||
time.sleep(2)
|
# time.sleep(2)
|
||||||
break
|
# break
|
||||||
if (1 == exitFlag):
|
# if (1 == exitFlag):
|
||||||
break
|
# break
|
||||||
|
|
||||||
# drop consumer groups
|
# # drop consumer groups
|
||||||
for i in range(len(groupIdList)):
|
# for i in range(len(groupIdList)):
|
||||||
for j in range(len(topicNameList)):
|
# for j in range(len(topicNameList)):
|
||||||
sqlCmd = f"drop consumer group `%s` on %s"%(groupIdList[i], topicNameList[j])
|
# sqlCmd = f"drop consumer group `%s` on %s"%(groupIdList[i], topicNameList[j])
|
||||||
tdSql.execute(sqlCmd)
|
# tdSql.execute(sqlCmd)
|
||||||
|
|
||||||
tmqCom.g_end_insert_flag = 1
|
tmqCom.g_end_insert_flag = 1
|
||||||
tdLog.debug("notify sub-thread to stop insert data")
|
tdLog.debug("notify sub-thread to stop insert data")
|
||||||
|
|
Loading…
Reference in New Issue