Merge pull request #22738 from taosdata/TD-25824
update test case tmqConsumerDiscontinuousData.py to fix the failed oc…
This commit is contained in:
commit
3e71208d0f
|
@ -211,6 +211,15 @@ class TDTestCase:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# write data again when consumer stopped to make sure some data aren't consumed
|
||||||
|
pInsertDataAgainThread = tmqCom.asyncInsertDataByInterlace(paraDict)
|
||||||
|
pInsertDataAgainThread.join()
|
||||||
|
tdLog.info("firstly call to flash database when writing data second time")
|
||||||
|
tdSql.query("flush database %s"%(paraDict['dbName']))
|
||||||
|
time.sleep(self.walRetentionPeriod + 1)
|
||||||
|
tdLog.info("secondely call to flash database when writing data second time")
|
||||||
|
tdSql.query("flush database %s"%(paraDict['dbName']))
|
||||||
|
|
||||||
with self.lock:
|
with self.lock:
|
||||||
self.retryPoll = 0
|
self.retryPoll = 0
|
||||||
currentTime = datetime.now()
|
currentTime = datetime.now()
|
||||||
|
@ -219,11 +228,10 @@ class TDTestCase:
|
||||||
paraDict["startTs"] = 1640966400000 + paraDict["ctbNum"] * paraDict["rowsPerTbl"]
|
paraDict["startTs"] = 1640966400000 + paraDict["ctbNum"] * paraDict["rowsPerTbl"]
|
||||||
pThread3 = tmqCom.asyncInsertDataByInterlace(paraDict)
|
pThread3 = tmqCom.asyncInsertDataByInterlace(paraDict)
|
||||||
|
|
||||||
|
|
||||||
tdLog.debug("wait sub-thread to end insert data")
|
tdLog.debug("wait sub-thread to end insert data")
|
||||||
pThread3.join()
|
pThread3.join()
|
||||||
|
|
||||||
totalInsertRows = paraDict["ctbNum"] * paraDict["rowsPerTbl"] * 2
|
totalInsertRows = paraDict["ctbNum"] * paraDict["rowsPerTbl"] * 3
|
||||||
tdLog.debug("wait sub-thread to end consume data")
|
tdLog.debug("wait sub-thread to end consume data")
|
||||||
pThread2.join()
|
pThread2.join()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue