提交 f08d17d2 编写于 作者: wmmhello's avatar wmmhello

Merge branch 'fix/TD-22671' of https://github.com/taosdata/TDengine into fix/TD-22671

...@@ -80,16 +80,16 @@ class TDTestCase: ...@@ -80,16 +80,16 @@ class TDTestCase:
tdLog.debug("del data ............ [OK]") tdLog.debug("del data ............ [OK]")
return return
def threadFunctionForDeletaData(self, **paraDict): def threadFunctionForDeletaData(self, paraDict):
# create new connector for new tdSql instance in my thread # create new connector for new tdSql instance in my thread
newTdSql = tdCom.newTdSql() newTdSql = tdCom.newTdSql()
self.delData(newTdSql,paraDict["dbName"],paraDict["ctbPrefix"],paraDict["ctbNum"],paraDict["startTs"],paraDict["endTs"],paraDict["ctbStartIdx"]) self.delData(newTdSql,paraDict["dbName"],paraDict["ctbPrefix"],paraDict["ctbNum"],paraDict["startTs"],paraDict["endTs"],paraDict["ctbStartIdx"])
return return
def asyncDeleteData(self, paraDict): # def asyncDeleteData(self, paraDict):
pThread = threading.Thread(target=self.threadFunctionForDeletaData, kwargs=paraDict) # pThread = threading.Thread(target=self.threadFunctionForDeletaData, kwargs=paraDict)
pThread.start() # pThread.start()
return pThread # return pThread
def tmqCase1(self): def tmqCase1(self):
tdLog.printNoPrefix("======== test case 1: ") tdLog.printNoPrefix("======== test case 1: ")
...@@ -340,7 +340,8 @@ class TDTestCase: ...@@ -340,7 +340,8 @@ class TDTestCase:
# del some data # del some data
rowsOfDelete = int(self.rowsPerTbl / 4 ) rowsOfDelete = int(self.rowsPerTbl / 4 )
paraDict["endTs"] = paraDict["startTs"] + rowsOfDelete - 1 paraDict["endTs"] = paraDict["startTs"] + rowsOfDelete - 1
pDeleteThread = self.asyncDeleteData(paraDict) # pDeleteThread = self.asyncDeleteData(paraDict)
self.threadFunctionForDeletaData(paraDict)
tdLog.info("start consume processor") tdLog.info("start consume processor")
tmqCom.startTmqSimProcess(pollDelay=paraDict['pollDelay'],dbName=paraDict["dbName"],showMsg=paraDict['showMsg'], showRow=paraDict['showRow'],snapshot=paraDict['snapshot']) tmqCom.startTmqSimProcess(pollDelay=paraDict['pollDelay'],dbName=paraDict["dbName"],showMsg=paraDict['showMsg'], showRow=paraDict['showRow'],snapshot=paraDict['snapshot'])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册