提交 7b171680 编写于 作者: haoranc's avatar haoranc

test:add testcase of rolling upgdade

上级 ef494fd4
...@@ -27,7 +27,7 @@ import threading ...@@ -27,7 +27,7 @@ import threading
import time import time
import json import json
BASEVERSION = "3.0.5.0" BASEVERSION = "3.0.7.0"
class TDTestCase: class TDTestCase:
...@@ -243,12 +243,14 @@ class TDTestCase: ...@@ -243,12 +243,14 @@ class TDTestCase:
os.system("LD_LIBRARY_PATH=/usr/lib taosBenchmark -f 0-others/compa4096.json -y -k 10 -z 5 ") os.system("LD_LIBRARY_PATH=/usr/lib taosBenchmark -f 0-others/compa4096.json -y -k 10 -z 5 ")
os.system("LD_LIBRARY_PATH=/usr/lib taos -s 'flush database db4096 '") os.system("LD_LIBRARY_PATH=/usr/lib taos -s 'flush database db4096 '")
os.system("LD_LIBRARY_PATH=/usr/lib taos -f 0-others/TS-3131.tsql") os.system("LD_LIBRARY_PATH=/usr/lib taos -f 0-others/TS-3131.tsql")
self.buildTaosd(bPath) # self.buildTaosd(bPath)
threads=[] threads=[]
threads.append(threading.Thread(target=self.insertAllData, args=(cPath_temp,dbname,tableNumbers1,recordNumbers1))) threads.append(threading.Thread(target=self.insertAllData, args=(cPath_temp,dbname,tableNumbers1,recordNumbers1)))
for tr in threads: for tr in threads:
tr.start() tr.start()
# when inserting data porcess has been started up ,we can upgrade taosd
sleep(5)
tdLog.printNoPrefix("==========step2:start to rolling upgdade ") tdLog.printNoPrefix("==========step2:start to rolling upgdade ")
for i in range(dnodeNumbers): for i in range(dnodeNumbers):
tdDnodes[i].running = 1 tdDnodes[i].running = 1
...@@ -258,7 +260,7 @@ class TDTestCase: ...@@ -258,7 +260,7 @@ class TDTestCase:
for tr in threads: for tr in threads:
tr.join() tr.join()
# waiting 10s for taosd cluster ready # wait 10s for taosd cluster ready
sleep(10) sleep(10)
tdsql=tdCom.newTdSql() tdsql=tdCom.newTdSql()
print(tdsql) print(tdsql)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册