tdLog.printNoPrefix("======== test case 3 end ...... ")
tdLog.printNoPrefix("======== test case 4 end ...... ")
deftmqCase5(self,cfgPath,buildPath):
tdLog.printNoPrefix("======== test case 5: Produce while two consumers to subscribe one db, firstly create one stb, after start consume create other stb")
tdLog.info("step 1: create database, stb, ctb and insert data")
# create and start thread
parameterDict={'cfg':'', \
'dbName':'db5', \
'vgroups':4, \
'stbName':'stb', \
'ctbNum':10, \
'rowsPerTbl':10000, \
'batchNum':100, \
'startTs':1640966400000}# 2022-01-01 00:00:00.000
parameterDict['cfg']=cfgPath
self.initConsumerTable()
tdSql.execute("create database if not exists %s vgroups %d"%(parameterDict['dbName'],parameterDict['vgroups']))