def setUp(self): super(add_index, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_="reindex_relation", status_="triggered", seg_id_=1, max_cycle_=20)
def setUp(self): super(drop_obj, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_="reindex_db", status_="triggered", seg_id_=1, max_cycle_=20)
class reset_fault(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'gp_fastsequence/reset_fault/sql/' ans_dir = 'gp_fastsequence/reset_fault/expected/' out_dir = 'gp_fastsequence/reset_fault/output/' def setUp(self): super(reset_fault, self).setUp() self.util = Reindex() ctr=0 ans = False while ctr < 10: ctr += 1 ans = self.util.check_fault_status(fault_name_ = "reindex_relation", status_ = "triggered", seg_id_ = 1, max_cycle_ = 20) if ans == True: ans2=self.util.inject_fault(operation_ = "reset", fault_ = "reindex_relation", mode_ = "async", prim_mirr_ = "primary", seg_id_ = 1) if ans2[0] == True: break else: sleep(30) if ctr == 10: self.assertFalse(ans,"fault reindex_relation not triggered!!")
class reset_fault(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'gp_fastsequence/reset_fault/sql/' ans_dir = 'gp_fastsequence/reset_fault/expected/' out_dir = 'gp_fastsequence/reset_fault/output/' def setUp(self): super(reset_fault, self).setUp() self.util = Reindex() ctr = 0 ans = False while ctr < 10: ctr += 1 ans = self.util.check_fault_status(fault_name_="reindex_relation", status_="triggered", seg_id_=1, max_cycle_=20) if ans == True: ans2 = self.util.inject_fault(operation_="reset", fault_="reindex_relation", mode_="async", prim_mirr_="primary", seg_id_=1) if ans2[0] == True: break else: sleep(30) if ctr == 10: self.assertFalse(ans, "fault reindex_relation not triggered!!")
def setUp(self): super(reindex_rel, self).setUp() self.util = Reindex() self.util.inject_fault(fault_="reindex_relation", mode_="async", operation_="suspend", prim_mirr_="primary", seg_id_=1)
class reindex_rel(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'reindex_rel/sql/' ans_dir = 'reindex_rel/expected/' out_dir = 'reindex_rel/output/' def setUp(self): super(reindex_rel, self).setUp() self.util = Reindex() self.util.inject_fault(fault_ = "reindex_relation", mode_ = "async", operation_ = "suspend", prim_mirr_ = "primary", seg_id_ = 1)
class reindex_verify(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'reindex_verify/sql/' ans_dir = 'reindex_verify/expected/' out_dir = 'reindex_verify/output/' def setUp(self): super(reindex_verify, self).setUp() self.util = Reindex() def tearDown(self): tinctest.logger.info("Starting gpcheckcat...") self.util.do_gpcheckcat()
class add_index(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'add_index/sql/' ans_dir = 'add_index/expected/' out_dir = 'add_index/output/' def setUp(self): super(add_index, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_ = "reindex_relation", status_ = "triggered", seg_id_ = 1, max_cycle_ = 20) def tearDown(self): self.util.inject_fault(operation_ = "reset", fault_ = "reindex_relation", mode_ = "async", prim_mirr_ = "primary", seg_id_ = 1)
class reindex_rel(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'reindex_rel/sql/' ans_dir = 'reindex_rel/expected/' out_dir = 'reindex_rel/output/' def setUp(self): super(reindex_rel, self).setUp() self.util = Reindex() self.util.inject_fault(fault_="reindex_relation", mode_="async", operation_="suspend", prim_mirr_="primary", seg_id_=1)
class insert_tup_gpfastseq(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'gp_fastsequence/insert_tuple/sql/' ans_dir = 'gp_fastsequence/insert_tuple/expected/' out_dir = 'gp_fastsequence/insert_tuple/output/' def setUp(self): super(insert_tup_gpfastseq, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_="reindex_relation", status_="triggered", seg_id_=1, max_cycle_=20) def tearDown(self): self.util.inject_fault(operation_="reset", fault_="reindex_relation", mode_="async", prim_mirr_="primary", seg_id_=1)
class drop_obj(SQLTestCase): """ @gucs gp_create_table_random_default_distribution=off """ sql_dir = 'drop_obj/sql/' ans_dir = 'drop_obj/expected/' out_dir = 'drop_obj/output/' def setUp(self): super(drop_obj, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_="reindex_db", status_="triggered", seg_id_=1, max_cycle_=20) def tearDown(self): self.util.inject_fault(operation_="reset", fault_="reindex_db", mode_="async", prim_mirr_="primary", seg_id_=1)
def setUp(self): super(reset_fault, self).setUp() self.util = Reindex() ctr = 0 ans = False while ctr < 10: ctr += 1 ans = self.util.check_fault_status(fault_name_="reindex_relation", status_="triggered", seg_id_=1, max_cycle_=20) if ans == True: ans2 = self.util.inject_fault(operation_="reset", fault_="reindex_relation", mode_="async", prim_mirr_="primary", seg_id_=1) if ans2[0] == True: break else: sleep(30) if ctr == 10: self.assertFalse(ans, "fault reindex_relation not triggered!!")
def setUp(self): super(reset_fault, self).setUp() self.util = Reindex() ctr=0 ans = False while ctr < 10: ctr += 1 ans = self.util.check_fault_status(fault_name_ = "reindex_relation", status_ = "triggered", seg_id_ = 1, max_cycle_ = 20) if ans == True: ans2=self.util.inject_fault(operation_ = "reset", fault_ = "reindex_relation", mode_ = "async", prim_mirr_ = "primary", seg_id_ = 1) if ans2[0] == True: break else: sleep(30) if ctr == 10: self.assertFalse(ans,"fault reindex_relation not triggered!!")
def setUp(self): super(reindex_rel, self).setUp() self.util = Reindex() self.util.inject_fault(fault_ = "reindex_relation", mode_ = "async", operation_ = "suspend", prim_mirr_ = "primary", seg_id_ = 1)
def setUp(self): super(reindex_verify, self).setUp() self.util = Reindex()
def setUp(self): super(verify_gpfastseq, self).setUp() self.util = Reindex()
def setUp(self): super(drop_obj, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_ = "reindex_db", status_ = "triggered", seg_id_ = 1, max_cycle_ = 20)
def setUp(self): super(add_index, self).setUp() self.util = Reindex() self.util.check_fault_status(fault_name_ = "reindex_relation", status_ = "triggered", seg_id_ = 1, max_cycle_ = 20)