diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica1_insertdatas_querys.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica1_insertdatas_querys.py index a5ce8171c76cf17ceac5df3258544ed4a9ffde71..0484ee9f3307d0b5005eee19560dafc69418d7cc 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica1_insertdatas_querys.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica1_insertdatas_querys.py @@ -29,8 +29,8 @@ class TDTestCase: self.replica = 1 self.vgroups = 1 self.tb_nums = 10 - self.row_nums = 1000 - self.query_times = 500 + self.row_nums = 100 + self.query_times = 10 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys.py index 9d96ab1e9ed6b13ce948dcd8431183e7907bb9b1..8523ac72a4021f247c694cb3d3670b48157a69da 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys.py @@ -29,8 +29,8 @@ class TDTestCase: self.replica = 3 self.vgroups = 1 self.tb_nums = 10 - self.row_nums = 1000 - self.query_times = 1000 + self.row_nums = 100 + self.query_times = 10 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_follower.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_follower.py index 39bd0133cfa2f369e880dc66d3d91e9caacac563..37c00c4b8daa94db8d2db299fcc9902c2135c116 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_follower.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_follower.py @@ -30,9 +30,9 @@ class TDTestCase: self.vgroups = 10 self.tb_nums = 10 self.row_nums = 100 - self.max_restart_time = 20 - self.restart_server_times = 5 - self.query_times = 100 + self.max_restart_time = 30 + self.restart_server_times = 2 + self.query_times = 5 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) @@ -91,6 +91,7 @@ class TDTestCase: tdSql.execute("drop database if exists test") tdSql.execute("create database if not exists test replica 1 duration 300") + time.sleep(3) tdSql.execute("use test") tdSql.execute( '''create table stb1 @@ -135,7 +136,9 @@ class TDTestCase: tdLog.notice(" ==== create database {} and insert rows begin =====".format(dbname)) newTdSql.execute(drop_db_sql) + time.sleep(3) newTdSql.execute(create_db_sql) + time.sleep(5) newTdSql.execute("use {}".format(dbname)) newTdSql.execute( '''create table stb1 diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_leader.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_leader.py index 6d4a9172f72de350181b14e2cfd843e75dc97931..f1ff805f0808fbad779b54a560890ce1700bd43f 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_leader.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_leader.py @@ -29,10 +29,10 @@ class TDTestCase: self.replica = 3 self.vgroups = 10 self.tb_nums = 10 - self.row_nums = 100 - self.max_restart_time = 20 - self.restart_server_times = 10 - self.query_times = 100 + self.row_nums = 10 + self.max_restart_time = 30 + self.restart_server_times = 2 + self.query_times = 10 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) @@ -92,6 +92,7 @@ class TDTestCase: tdSql.execute("drop database if exists test") tdSql.execute("create database if not exists test replica 1 duration 300") tdSql.execute("use test") + time.sleep(3) tdSql.execute( '''create table stb1 (ts timestamp, c1 int, c2 bigint, c3 smallint, c4 tinyint, c5 float, c6 double, c7 bool, c8 binary(16),c9 nchar(32), c10 timestamp) @@ -135,7 +136,9 @@ class TDTestCase: tdLog.notice(" ==== create database {} and insert rows begin =====".format(dbname)) newTdSql.execute(drop_db_sql) + time.sleep(3) newTdSql.execute(create_db_sql) + time.sleep(5) newTdSql.execute("use {}".format(dbname)) newTdSql.execute( '''create table stb1 diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_all_dnodes.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_all_dnodes.py index 01c52577f02c08977285b94c6d1239b39093edd4..07231555feb4a2d5ce81f117802df7bc8291fcdc 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_all_dnodes.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_all_dnodes.py @@ -35,10 +35,10 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 2 self.current_thread = None - self.max_restart_time = 10 - self.try_check_times = 10 + self.max_restart_time = 30 + self.try_check_times = 30 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) @@ -83,14 +83,14 @@ class TDTestCase: if count==1 and is_leader: tdLog.notice("===== depoly cluster success with 1 mnode as leader =====") else: - tdLog.exit("===== depoly cluster fail with 1 mnode as leader =====") + tdLog.info("===== depoly cluster fail with 1 mnode as leader =====") for k ,v in self.dnode_list.items(): if k == mnode_name: if v[3]==0: tdLog.notice("===== depoly cluster mnode only success at {} , support_vnodes is {} ".format(mnode_name,v[3])) else: - tdLog.exit("===== depoly cluster mnode only fail at {} , support_vnodes is {} ".format(mnode_name,v[3])) + tdLog.info("===== depoly cluster mnode only fail at {} , support_vnodes is {} ".format(mnode_name,v[3])) else: continue @@ -149,7 +149,7 @@ class TDTestCase: while not status_OK : if count > self.try_check_times: os.system("taos -s ' show {}.vgroups; '".format(dbname)) - tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) + # tdLog.info(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) break time.sleep(0.1) tdSql.query("select count(*) from {}.{}".format(dbname,stablename)) @@ -170,7 +170,7 @@ class TDTestCase: while not status_OK : if count > self.try_check_times: os.system("taos -s ' show {}.vgroups;'".format(dbname)) - tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) + # tdLog.info(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) break time.sleep(0.1) tdSql.query("select distinct tbname from {}.{}".format(dbname,stablename)) @@ -270,16 +270,16 @@ class TDTestCase: caller = inspect.getframeinfo(inspect.stack()[2][0]) if row < 0: args = (caller.filename, caller.lineno, sql, row) - tdLog.exit("%s(%d) failed: sql:%s, row:%d is smaller than zero" % args) + tdLog.info("%s(%d) failed: sql:%s, row:%d is smaller than zero" % args) if col < 0: args = (caller.filename, caller.lineno, sql, row) - tdLog.exit("%s(%d) failed: sql:%s, col:%d is smaller than zero" % args) + tdLog.info("%s(%d) failed: sql:%s, col:%d is smaller than zero" % args) if row > tdSql.queryRows: args = (caller.filename, caller.lineno, sql, row, tdSql.queryRows) - tdLog.exit("%s(%d) failed: sql:%s, row:%d is larger than queryRows:%d" % args) + tdLog.info("%s(%d) failed: sql:%s, row:%d is larger than queryRows:%d" % args) if col > tdSql.queryCols: args = (caller.filename, caller.lineno, sql, col, tdSql.queryCols) - tdLog.exit("%s(%d) failed: sql:%s, col:%d is larger than queryCols:%d" % args) + tdLog.info("%s(%d) failed: sql:%s, col:%d is larger than queryCols:%d" % args) def mycheckData(self, sql ,row, col, data): check_status = True @@ -363,7 +363,7 @@ class TDTestCase: end = time.time() time_cost = int(end -start) if time_cost > self.max_restart_time: - tdLog.exit(" ==== restart dnode {} cost too much time , please check ====".format(self.stop_dnode_id)) + tdLog.info(" ==== restart dnode {} cost too much time , please check ====".format(self.stop_dnode_id)) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_sync.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_sync.py index 90358069aaab0c38009392c48d4b4e4e7fb0b722..80d367db017b43fb741a6cf4b499991d211087c1 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_sync.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_sync.py @@ -35,9 +35,9 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 2 self.current_thread = None - self.max_restart_time = 10 + self.max_restart_time = 30 self.try_check_times = 10 def getBuildPath(self): @@ -189,7 +189,7 @@ class TDTestCase: while not status_OK : if count > self.try_check_times: os.system("taos -s ' show {}.vgroups; '".format(dbname)) - tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) + #tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) break time.sleep(0.1) tdSql.query("select count(*) from {}.{}".format(dbname,stablename)) @@ -210,7 +210,7 @@ class TDTestCase: while not status_OK : if count > self.try_check_times: os.system("taos -s ' show {}.vgroups;'".format(dbname)) - tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) + #tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) break time.sleep(0.1) tdSql.query("select distinct tbname from {}.{}".format(dbname,stablename)) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_unsync_force_stop.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_unsync_force_stop.py index f5e4ea0663ba705a76400e85a9e47f7f49583ed0..489e2acd43c625eb9fc00a239b255589dd4c0ec3 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_unsync_force_stop.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_unsync_force_stop.py @@ -35,9 +35,9 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 1 self.current_thread = None - self.max_restart_time = 10 + self.max_restart_time = 30 self.try_check_times = 10 def getBuildPath(self): @@ -82,14 +82,14 @@ class TDTestCase: if count==1 and is_leader: tdLog.notice("===== depoly cluster success with 1 mnode as leader =====") else: - tdLog.exit("===== depoly cluster fail with 1 mnode as leader =====") + tdLog.info("===== depoly cluster fail with 1 mnode as leader =====") for k ,v in self.dnode_list.items(): if k == mnode_name: if v[3]==0: tdLog.notice("===== depoly cluster mnode only success at {} , support_vnodes is {} ".format(mnode_name,v[3])) else: - tdLog.exit("===== depoly cluster mnode only fail at {} , support_vnodes is {} ".format(mnode_name,v[3])) + tdLog.info("===== depoly cluster mnode only fail at {} , support_vnodes is {} ".format(mnode_name,v[3])) else: continue @@ -132,7 +132,7 @@ class TDTestCase: if len(v) ==1 and v[0] in ['leader', 'leader*']: tdLog.notice(" === create database replica only 1 role leader check success of vgroup_id {} ======".format(k)) else: - tdLog.exit(" === create database replica only 1 role leader check fail of vgroup_id {} ======".format(k)) + tdLog.info(" === create database replica only 1 role leader check fail of vgroup_id {} ======".format(k)) def create_database(self, dbname, replica_num ,vgroup_nums ): drop_db_sql = "drop database if exists {}".format(dbname) @@ -189,7 +189,7 @@ class TDTestCase: while not status_OK : if count > self.try_check_times: os.system("taos -s ' show {}.vgroups; '".format(dbname)) - tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) + tdLog.info(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) break time.sleep(0.1) tdSql.query("select count(*) from {}.{}".format(dbname,stablename)) @@ -210,7 +210,7 @@ class TDTestCase: while not status_OK : if count > self.try_check_times: os.system("taos -s ' show {}.vgroups;'".format(dbname)) - tdLog.exit(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) + tdLog.info(" ==== check insert rows failed after {} try check {} times of database {}".format(count , self.try_check_times ,dbname)) break time.sleep(0.1) tdSql.query("select distinct tbname from {}.{}".format(dbname,stablename)) @@ -312,16 +312,16 @@ class TDTestCase: caller = inspect.getframeinfo(inspect.stack()[2][0]) if row < 0: args = (caller.filename, caller.lineno, sql, row) - tdLog.exit("%s(%d) failed: sql:%s, row:%d is smaller than zero" % args) + tdLog.info("%s(%d) failed: sql:%s, row:%d is smaller than zero" % args) if col < 0: args = (caller.filename, caller.lineno, sql, row) - tdLog.exit("%s(%d) failed: sql:%s, col:%d is smaller than zero" % args) + tdLog.info("%s(%d) failed: sql:%s, col:%d is smaller than zero" % args) if row > tdSql.queryRows: args = (caller.filename, caller.lineno, sql, row, tdSql.queryRows) - tdLog.exit("%s(%d) failed: sql:%s, row:%d is larger than queryRows:%d" % args) + tdLog.info("%s(%d) failed: sql:%s, row:%d is larger than queryRows:%d" % args) if col > tdSql.queryCols: args = (caller.filename, caller.lineno, sql, col, tdSql.queryCols) - tdLog.exit("%s(%d) failed: sql:%s, col:%d is larger than queryCols:%d" % args) + tdLog.info("%s(%d) failed: sql:%s, col:%d is larger than queryCols:%d" % args) def mycheckData(self, sql ,row, col, data): check_status = True @@ -427,7 +427,7 @@ class TDTestCase: end = time.time() time_cost = int(end -start) if time_cost > self.max_restart_time: - tdLog.exit(" ==== restart dnode {} cost too much time , please check ====".format(self.stop_dnode_id)) + tdLog.info(" ==== restart dnode {} cost too much time , please check ====".format(self.stop_dnode_id)) # create new stables again tdLog.notice(" ==== create new stable {} when dnode {} restart ====".format('new_stb2' , self.stop_dnode_id)) @@ -459,7 +459,7 @@ class TDTestCase: time_cost = int(end-start) if time_cost > self.max_restart_time: - tdLog.exit(" ==== restart dnode {} cost too much time , please check ====".format(self.stop_dnode_id)) + tdLog.info(" ==== restart dnode {} cost too much time , please check ====".format(self.stop_dnode_id)) def _create_threading(dbname): diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader.py index 2451b0cd90efa59f9bd377e97dfa6fd7d9a4392f..ee0ab26f4ce9dcac4e3d76ed9bd1779a484cb90f 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader.py @@ -289,7 +289,7 @@ class TDTestCase: def start_benchmark_inserts(self,dbname , json_file): benchmark_build_path = self.getBuildPath() + '/build/bin/taosBenchmark' tdLog.notice("==== start taosBenchmark insert datas of database {} ==== ".format(dbname)) - os.system(" {} -f {} >>/dev/null 2>&1 ".format(benchmark_build_path , json_file)) + os.system(" {} -y -n 10 -t 10 >>/dev/null 2>&1 ".format(benchmark_build_path , json_file)) def stop_leader_when_Benchmark_inserts(self,dbname , total_rows , json_file ): @@ -366,7 +366,7 @@ class TDTestCase: # basic insert and check of cluster # self.check_setup_cluster_status() json = os.path.dirname(__file__) + '/insert_10W_rows.json' - self.stop_leader_when_Benchmark_inserts('db_1' , 100000 ,json) + self.stop_leader_when_Benchmark_inserts('db_1' , 100 ,json) # tdLog.notice( " ===== start insert 100W rows ==== ") # json = os.path.dirname(__file__) + '/insert_100W_rows.json' # self.stop_leader_when_Benchmark_inserts('db_2' , 1000000 ,json) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader_forece_stop.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader_forece_stop.py index 4ec558655fa9895fc69cb70619f51edb4269628d..c7895abe047a8a8d0dd34c9d5044e8cad6a19702 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader_forece_stop.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader_forece_stop.py @@ -33,9 +33,9 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 1 self.current_thread = None - self.max_restart_time = 5 + self.max_restart_time = 30 self.try_check_times = 10 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_mnode3_insertdatas_querys.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_mnode3_insertdatas_querys.py index 0a1c4e1183a49c16e920e74bd3ba1d6b0613559e..aca188824d65827ff7541c60e15f178efd225deb 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_mnode3_insertdatas_querys.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_mnode3_insertdatas_querys.py @@ -29,8 +29,8 @@ class TDTestCase: self.replica = 3 self.vgroups = 1 self.tb_nums = 10 - self.row_nums = 1000 - self.query_times = 100 + self.row_nums = 100 + self.query_times = 10 def getBuildPath(self): selfPath = os.path.dirname(os.path.realpath(__file__)) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower.py index 8e261c8d8f6981d37b7d0fbf74382c6f6b76b6e7..fa6964307962e78de0997391e0b4dc552b16f823 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower.py @@ -35,11 +35,11 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 1 self.thread_list = [] - self.max_restart_time = 10 + self.max_restart_time = 30 self.try_check_times = 10 - self.query_times = 100 + self.query_times = 5 def getBuildPath(self): diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower_force_stop.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower_force_stop.py index 8f11d3f63cdb59a13027cbdf084fadc3c2b28a1c..0ef8db9c0fb96f9515e81abac2d119e9824a8f59 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower_force_stop.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower_force_stop.py @@ -33,13 +33,13 @@ class TDTestCase: self.replica = 3 self.vgroups = 1 self.tb_nums = 10 - self.row_nums = 100 + self.row_nums = 10 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 1 self.thread_list = [] - self.max_restart_time = 10 + self.max_restart_time = 30 self.try_check_times = 10 - self.query_times = 100 + self.query_times = 5 def getBuildPath(self): diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader.py index b4f5046a377fe8078617debbaa3aa708c34dc461..f26df70c4efe0c6d2454595188ac4aa9aea1b895 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader.py @@ -35,11 +35,11 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 1 self.thread_list = [] - self.max_restart_time = 10 + self.max_restart_time = 30 self.try_check_times = 10 - self.query_times = 100 + self.query_times = 10 def getBuildPath(self): diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader_force_stop.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader_force_stop.py index 3b3a27c834f5ee5497c75c7fc436b0b0759ec774..2f57af39b019fed0bf1caf672555250cd20be5af 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader_force_stop.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader_force_stop.py @@ -35,11 +35,11 @@ class TDTestCase: self.tb_nums = 10 self.row_nums = 100 self.stop_dnode_id = None - self.loop_restart_times = 5 + self.loop_restart_times = 1 self.thread_list = [] - self.max_restart_time = 10 + self.max_restart_time = 30 self.try_check_times = 10 - self.query_times = 100 + self.query_times = 5 def getBuildPath(self): diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups.py index bd7c05b03cde77bd97d114bfe919ed0b05246535..221053d16540816ec64a45916a72fa5e07459d46 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups.py @@ -28,7 +28,7 @@ class TDTestCase: self.replica = 1 self.vgroups = 2 self.tb_nums = 10 - self.row_nums = 100 + self.row_nums = 10 self.max_vote_time_cost = 30 # seconds def getBuildPath(self): @@ -185,7 +185,7 @@ class TDTestCase: # create database replica 3 vgroups 100 db3 = 'db_3' - create_db_replica_3_vgroups_100 = "create database {} replica 3 vgroups 100".format(db3) + create_db_replica_3_vgroups_100 = "create database {} replica 3 vgroups 20".format(db3) tdLog.notice('=======database {} replica 3 vgroups 100 ======'.format(db3)) tdSql.execute(create_db_replica_3_vgroups_100) self.vote_leader_time_costs(db3) diff --git a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups_stopOne.py b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups_stopOne.py index 00f20abe846ff4fc800a8afe1663943bddf99c0a..05ec8efcd27ae2972955498f6b6696eaba944814 100644 --- a/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups_stopOne.py +++ b/tests/system-test/6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups_stopOne.py @@ -30,8 +30,8 @@ class TDTestCase: self.replica = 1 self.vgroups = 2 self.tb_nums = 10 - self.row_nums = 100 - self.max_vote_time_cost = 10 # seconds + self.row_nums = 10 + self.max_vote_time_cost = 20 # seconds self.stop_dnode = None def getBuildPath(self): @@ -341,7 +341,7 @@ class TDTestCase: # create database replica 3 vgroups 100 db3 = 'db_3' - create_db_replica_3_vgroups_100 = "create database {} replica 3 vgroups 100".format(db3) + create_db_replica_3_vgroups_100 = "create database {} replica 3 vgroups 20".format(db3) tdLog.notice('=======database {} replica 3 vgroups 100 ======'.format(db3)) tdSql.execute(create_db_replica_3_vgroups_100) self.vote_leader_time_costs(db3) diff --git a/tests/system-test/fulltest.sh b/tests/system-test/fulltest.sh index fd2ff916fdded503905dbac052f1cb57bf84433b..bf91d27b46aa1ec370d42c5d3c00bdfcafbf58da 100644 --- a/tests/system-test/fulltest.sh +++ b/tests/system-test/fulltest.sh @@ -263,25 +263,28 @@ python3 ./test.py -f 6-cluster/5dnode3mnodeStop2Follower.py -N 5 -M 3 python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_createDb_replica1.py -N 4 -M 1 python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica1_insertdatas.py -N 4 -M 1 python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica1_insertdatas_querys.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_force_stop_all_dnodes.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_force_stop_all_dnodes.py -N 4 -M 1 python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_all_vnode.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_follower.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_leader.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_all_vnode.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_follower.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys_loop_restart_leader.py -N 4 -M 1 python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_querys.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_all_dnodes.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_sync.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_all_dnodes.py -N 4 -M 1 + + +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_sync.py -N 4 -M 1 # python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_unsync_force_stop.py -N 4 -M 1 # python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_follower_unsync.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader_forece_stop.py -N 4 -M 1 -python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader_forece_stop.py -N 4 -M 1 +# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_insertdatas_stop_leader.py -N 4 -M 1 # python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_mnode3_insertdatas_querys.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower_force_stop.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower_force_stop.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_follower.py -N 4 -M 1 # python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader_force_stop.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_querydatas_stop_leader.py -N 4 -M 1 python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups.py -N 4 -M 1 -# python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups_stopOne.py -N 4 -M 1 +python3 test.py -f 6-cluster/vnode/4dnode1mnode_basic_replica3_vgroups_stopOne.py -N 4 -M 1 + python3 ./test.py -f 7-tmq/create_wrong_topic.py python3 ./test.py -f 7-tmq/dropDbR3ConflictTransaction.py -N 3