test:modify tmq test case for replica3

This commit is contained in:
plum-lihui 2022-10-31 20:57:18 +08:00
parent 8cdbcb89f5
commit c609493cbb
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class TDTestCase:
# tmqCom.insert_data_with_autoCreateTbl(tsql=tdSql,dbName=paraDict["dbName"],stbName=paraDict["stbName"],ctbPrefix="ctbx",
# ctbNum=paraDict["ctbNum"],rowsPerTbl=paraDict["rowsPerTbl"],batchNum=paraDict["batchNum"],
# startTs=paraDict["startTs"],ctbStartIdx=paraDict['ctbStartIdx'])
tmqCom.asyncInsertDataByInterlace(paraDict)
pThread = tmqCom.asyncInsertDataByInterlace(paraDict)
tdLog.info("wait some data inserted")
exitFlag = 1
@ -128,6 +128,7 @@ class TDTestCase:
cluster.dnodes[4].stoptaosd()
cluster.dnodes[4].starttaosd()
pThread.join()
# tdLog.info("restart taosd to ensure that the data falls into the disk")
# tdSql.query("flush database %s"%(paraDict['dbName']))
return
@ -290,6 +291,7 @@ class TDTestCase:
def run(self):
self.prepareTestEnv()
self.tmqCase1()
self.prepareTestEnv()
self.tmqCase2()
def stop(self):