提交 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:
tdLog.debug("del data ............ [OK]")
return
def threadFunctionForDeletaData(self, **paraDict):
def threadFunctionForDeletaData(self, paraDict):
# create new connector for new tdSql instance in my thread
newTdSql = tdCom.newTdSql()
self.delData(newTdSql,paraDict["dbName"],paraDict["ctbPrefix"],paraDict["ctbNum"],paraDict["startTs"],paraDict["endTs"],paraDict["ctbStartIdx"])
return
def asyncDeleteData(self, paraDict):
pThread = threading.Thread(target=self.threadFunctionForDeletaData, kwargs=paraDict)
pThread.start()
return pThread
# def asyncDeleteData(self, paraDict):
# pThread = threading.Thread(target=self.threadFunctionForDeletaData, kwargs=paraDict)
# pThread.start()
# return pThread
def tmqCase1(self):
tdLog.printNoPrefix("======== test case 1: ")
......@@ -340,7 +340,8 @@ class TDTestCase:
# del some data
rowsOfDelete = int(self.rowsPerTbl / 4 )
paraDict["endTs"] = paraDict["startTs"] + rowsOfDelete - 1
pDeleteThread = self.asyncDeleteData(paraDict)
# pDeleteThread = self.asyncDeleteData(paraDict)
self.threadFunctionForDeletaData(paraDict)
tdLog.info("start consume processor")
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.
先完成此消息的编辑!
想要评论请 注册