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

test:add replica 3 for all testcases and frameworks

上级 691b9ac5
...@@ -19,7 +19,7 @@ class MyDnodes(TDDnodes): ...@@ -19,7 +19,7 @@ class MyDnodes(TDDnodes):
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
self.depoly_cluster(3) self.depoly_cluster(3)
......
...@@ -12,7 +12,7 @@ class TDTestCase: ...@@ -12,7 +12,7 @@ class TDTestCase:
# updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 , # updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 ,
# "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143, # "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143,
# "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143} # "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143}
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -12,7 +12,7 @@ class TDTestCase: ...@@ -12,7 +12,7 @@ class TDTestCase:
# updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 , # updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 ,
# "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143, # "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143,
# "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143} # "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143}
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -12,7 +12,7 @@ class TDTestCase: ...@@ -12,7 +12,7 @@ class TDTestCase:
# updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 , # updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 ,
# "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143, # "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143,
# "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143} # "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143}
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -12,7 +12,7 @@ class TDTestCase: ...@@ -12,7 +12,7 @@ class TDTestCase:
# updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 , # updatecfgDict = {'debugFlag': 143 ,"cDebugFlag":143,"uDebugFlag":143 ,"rpcDebugFlag":143 , "tmrDebugFlag":143 ,
# "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143, # "jniDebugFlag":143 ,"simDebugFlag":143,"dDebugFlag":143, "dDebugFlag":143,"vDebugFlag":143,"mDebugFlag":143,"qDebugFlag":143,
# "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143} # "wDebugFlag":143,"sDebugFlag":143,"tsdbDebugFlag":143,"tqDebugFlag":143 ,"fsDebugFlag":143 ,"udfDebugFlag":143}
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -10,7 +10,7 @@ from util.cases import * ...@@ -10,7 +10,7 @@ from util.cases import *
class TDTestCase: class TDTestCase:
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -64,7 +64,7 @@ class TDTestCase: ...@@ -64,7 +64,7 @@ class TDTestCase:
return buildPath return buildPath
# init # init
def init(self, conn, logSql=True): def init(self, conn, logSql=True, replicaVar=1):
tdLog.debug("start to execute %s" % __file__) tdLog.debug("start to execute %s" % __file__)
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
# tdSql.prepare() # tdSql.prepare()
......
...@@ -10,7 +10,7 @@ from util.cases import * ...@@ -10,7 +10,7 @@ from util.cases import *
class TDTestCase: class TDTestCase:
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -78,7 +78,7 @@ class TDTestCase: ...@@ -78,7 +78,7 @@ class TDTestCase:
def insert_data(self, tbname, ts_start, count): def insert_data(self, tbname, ts_start, count):
pre_insert = "insert into %s values"%tbname pre_insert = "insert into %s values"%tbname
sql = pre_insert sql = pre_insert
tdLog.debug("doing insert table %s rows=%d ..."%(tbname, count)) tdLog.debug("insert table %s rows=%d ..."%(tbname, count))
for i in range(count): for i in range(count):
sql += " (%d,%d)"%(ts_start + i*1000, i ) sql += " (%d,%d)"%(ts_start + i*1000, i )
if i >0 and i%30000 == 0: if i >0 and i%30000 == 0:
...@@ -94,7 +94,7 @@ class TDTestCase: ...@@ -94,7 +94,7 @@ class TDTestCase:
def insert_data1(self, tbname, ts_start, count): def insert_data1(self, tbname, ts_start, count):
pre_insert = "insert into %s values"%tbname pre_insert = "insert into %s values"%tbname
sql = pre_insert sql = pre_insert
tdLog.debug("doing insert table %s rows=%d ..."%(tbname, count)) tdLog.debug("insert table %s rows=%d ..."%(tbname, count))
for i in range(count): for i in range(count):
sql += " (%d,%d,%d)"%(ts_start + i*1000, i , i+1) sql += " (%d,%d,%d)"%(ts_start + i*1000, i , i+1)
if i >0 and i%30000 == 0: if i >0 and i%30000 == 0:
......
...@@ -10,7 +10,7 @@ from util.cases import * ...@@ -10,7 +10,7 @@ from util.cases import *
class TDTestCase: class TDTestCase:
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -10,7 +10,7 @@ from util.cases import * ...@@ -10,7 +10,7 @@ from util.cases import *
class TDTestCase: class TDTestCase:
def init(self, conn, powSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -21,7 +21,7 @@ class MyDnodes(TDDnodes): ...@@ -21,7 +21,7 @@ class MyDnodes(TDDnodes):
class TDTestCase: class TDTestCase:
noConn = True noConn = True
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
self.depoly_cluster(5) self.depoly_cluster(5)
......
...@@ -20,7 +20,7 @@ from clusterCommonCreate import * ...@@ -20,7 +20,7 @@ from clusterCommonCreate import *
from clusterCommonCheck import * from clusterCommonCheck import *
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -26,7 +26,7 @@ import ctypes ...@@ -26,7 +26,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -22,7 +22,7 @@ class MyDnodes(TDDnodes): ...@@ -22,7 +22,7 @@ class MyDnodes(TDDnodes):
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
......
...@@ -26,7 +26,7 @@ class MyDnodes(TDDnodes): ...@@ -26,7 +26,7 @@ class MyDnodes(TDDnodes):
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
self.ts = 1500000000000 self.ts = 1500000000000
......
...@@ -26,7 +26,7 @@ import ctypes ...@@ -26,7 +26,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -26,7 +26,7 @@ import ctypes ...@@ -26,7 +26,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -26,7 +26,7 @@ import ctypes ...@@ -26,7 +26,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -26,7 +26,7 @@ import ctypes ...@@ -26,7 +26,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql,replicaVar=1): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
...@@ -171,7 +171,7 @@ class TDTestCase: ...@@ -171,7 +171,7 @@ class TDTestCase:
def run(self): def run(self):
# print(self.master_dnode.cfgDict) # print(self.master_dnode.cfgDict)
self.fiveDnodeThreeMnode(dnodeNumbers=6,mnodeNums=3,restartNumbers=1,stopRole='mnode') self.fiveDnodeThreeMnode(dnodeNumbers=5,mnodeNums=3,restartNumbers=1,stopRole='mnode')
def stop(self): def stop(self):
tdSql.close() tdSql.close()
......
...@@ -25,12 +25,12 @@ import ctypes ...@@ -25,12 +25,12 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql, replicaVar=1): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
self.replicaVar = replicaVar
def getBuildPath(self): def getBuildPath(self):
selfPath = os.path.dirname(os.path.realpath(__file__)) selfPath = os.path.dirname(os.path.realpath(__file__))
...@@ -88,7 +88,7 @@ class TDTestCase: ...@@ -88,7 +88,7 @@ class TDTestCase:
vnodeNumbers = int(dnodeNumbers-mnodeNums) vnodeNumbers = int(dnodeNumbers-mnodeNums)
allDbNumbers=(paraDict['dbNumbers']*restartNumbers) allDbNumbers=(paraDict['dbNumbers']*restartNumbers)
allStbNumbers=(paraDict['stbNumbers']*restartNumbers) allStbNumbers=(paraDict['stbNumbers']*restartNumbers)
paraDict['replica'] = self.replicaVar
tdLog.info("first check dnode and mnode") tdLog.info("first check dnode and mnode")
tdSql.query("select * from information_schema.ins_dnodes;") tdSql.query("select * from information_schema.ins_dnodes;")
tdSql.checkData(0,1,'%s:6030'%self.host) tdSql.checkData(0,1,'%s:6030'%self.host)
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
......
...@@ -25,7 +25,7 @@ import ctypes ...@@ -25,7 +25,7 @@ import ctypes
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
# tdSql.init(conn.cursor()) # tdSql.init(conn.cursor())
# self.host = socket.gethostname() # self.host = socket.gethostname()
......
...@@ -24,7 +24,7 @@ from multiprocessing import Process ...@@ -24,7 +24,7 @@ from multiprocessing import Process
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -24,7 +24,7 @@ from multiprocessing import Process ...@@ -24,7 +24,7 @@ from multiprocessing import Process
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -25,7 +25,7 @@ from multiprocessing import Process ...@@ -25,7 +25,7 @@ from multiprocessing import Process
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -24,7 +24,7 @@ from multiprocessing import Process ...@@ -24,7 +24,7 @@ from multiprocessing import Process
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -26,7 +26,7 @@ class MyDnodes(TDDnodes): ...@@ -26,7 +26,7 @@ class MyDnodes(TDDnodes):
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
self.TDDnodes = None self.TDDnodes = None
......
...@@ -24,7 +24,7 @@ from multiprocessing import Process ...@@ -24,7 +24,7 @@ from multiprocessing import Process
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ...@@ -18,7 +18,7 @@ import subprocess
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ...@@ -18,7 +18,7 @@ import subprocess
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ,threading ...@@ -18,7 +18,7 @@ import subprocess ,threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ...@@ -18,7 +18,7 @@ import subprocess
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ,threading ...@@ -18,7 +18,7 @@ import subprocess ,threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ,threading ...@@ -18,7 +18,7 @@ import subprocess ,threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ,threading ...@@ -18,7 +18,7 @@ import subprocess ,threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ,threading ...@@ -18,7 +18,7 @@ import subprocess ,threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -19,7 +19,7 @@ import threading ...@@ -19,7 +19,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -19,7 +19,7 @@ import threading ...@@ -19,7 +19,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -18,7 +18,7 @@ import subprocess ,threading ...@@ -18,7 +18,7 @@ import subprocess ,threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -21,7 +21,7 @@ import threading ...@@ -21,7 +21,7 @@ import threading
sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__))
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -17,7 +17,7 @@ import socket ...@@ -17,7 +17,7 @@ import socket
import subprocess import subprocess
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -19,7 +19,7 @@ import socket ...@@ -19,7 +19,7 @@ import socket
import subprocess import subprocess
class TDTestCase: class TDTestCase:
def init(self,conn ,logSql): def init(self, conn, logSql, replicaVar=1):
tdLog.debug(f"start to excute {__file__}") tdLog.debug(f"start to excute {__file__}")
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
self.host = socket.gethostname() self.host = socket.gethostname()
......
...@@ -209,7 +209,7 @@ class TDTestCase: ...@@ -209,7 +209,7 @@ class TDTestCase:
# wait for data ready # wait for data ready
prepareEnvThread.join() prepareEnvThread.join()
tdLog.info("insert process end, and start to check consume result") tdLog.info("1-insert process end, and start to check consume result")
expectRows = 1 expectRows = 1
resultList = self.selectConsumeResult(expectRows) resultList = self.selectConsumeResult(expectRows)
totalConsumeRows = 0 totalConsumeRows = 0
...@@ -310,7 +310,7 @@ class TDTestCase: ...@@ -310,7 +310,7 @@ class TDTestCase:
# wait for data ready # wait for data ready
prepareEnvThread.join() prepareEnvThread.join()
tdLog.info("insert process end, and start to check consume result") tdLog.info("2-insert process end, and start to check consume result")
expectRows = 2 expectRows = 2
resultList = self.selectConsumeResult(expectRows) resultList = self.selectConsumeResult(expectRows)
totalConsumeRows = 0 totalConsumeRows = 0
...@@ -379,7 +379,7 @@ class TDTestCase: ...@@ -379,7 +379,7 @@ class TDTestCase:
# wait for data ready # wait for data ready
prepareEnvThread.join() prepareEnvThread.join()
tdLog.info("insert process end, and start to check consume result") tdLog.info("3-insert process end, and start to check consume result")
expectRows = 2 expectRows = 2
resultList = self.selectConsumeResult(expectRows) resultList = self.selectConsumeResult(expectRows)
totalConsumeRows = 0 totalConsumeRows = 0
...@@ -459,7 +459,7 @@ class TDTestCase: ...@@ -459,7 +459,7 @@ class TDTestCase:
prepareEnvThread.join() prepareEnvThread.join()
prepareEnvThread2.join() prepareEnvThread2.join()
tdLog.info("insert process end, and start to check consume result") tdLog.info("4-insert process end, and start to check consume result")
expectRows = 1 expectRows = 1
resultList = self.selectConsumeResult(expectRows) resultList = self.selectConsumeResult(expectRows)
totalConsumeRows = 0 totalConsumeRows = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册