Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
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!!")
Пример #4
0
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!!")
Пример #5
0
 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)
Пример #6
0
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)
Пример #7
0
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()
Пример #8
0
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()
Пример #9
0
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)
Пример #10
0
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)
Пример #11
0
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)
Пример #12
0
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)
Пример #13
0
    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!!")
Пример #14
0
    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!!")
Пример #15
0
 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)
Пример #16
0
 def setUp(self):
     super(reindex_verify, self).setUp()
     self.util = Reindex()
Пример #17
0
 def setUp(self):
     super(reindex_verify, self).setUp()
     self.util = Reindex()
Пример #18
0
 def setUp(self):
     super(verify_gpfastseq, self).setUp()
     self.util = Reindex()
Пример #19
0
 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)
Пример #20
0
 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)
Пример #21
0
 def setUp(self):
     super(verify_gpfastseq, self).setUp()
     self.util = Reindex()