Merge branch 'feature/sangshuduo/multi-thread-random-test' of https://github.com/taosdata/TDengine into feature/sangshuduo/multi-thread-random-test

This commit is contained in:
Shuduo Sang 2020-06-06 18:57:31 +08:00
commit 8ab2c31cb0
1 changed files with 6 additions and 4 deletions

View File

@ -195,15 +195,16 @@ class Test (threading.Thread):
tdDnodes.forcestop(1)
tdDnodes.deploy(1)
tdDnodes.start(1)
tdSql.prepare()
last_tb = ""
last_stb = ""
written = 0
tdDnodes.start(1)
tdSql.prepare()
def delete_datafiles(self):
tdLog.info("delete_data_files")
global last_tb
global last_stb
global written
dnodesDir = tdDnodes.getDnodesRootDir()
@ -211,11 +212,12 @@ class Test (threading.Thread):
deleteCmd = 'rm -rf %s' % dataDir
os.system(deleteCmd)
last_tb = ""
written = 0
tdDnodes.start(1)
# tdLog.sleep(10)
tdSql.prepare()
last_tb = ""
last_stb = ""
written = 0
def run(self):
dataOp = {