示例#1
0
文件: FaultTest.py 项目: 50wu/gpdb
 def test_check_mirror_segments(self):
     wait_counter = 1
     max_count = 5
     newfault = Fault()
     
     while(wait_counter <= max_count):
         check_mirrors = newfault.are_mirrors_up()
         if(check_mirrors):
             tinctest.logger.info('Mirrors are up..')
             return
         tinctest.logger.info('Waiting [' + str(wait_counter) + '] for the mirrors segments to come up')
         sleep(10)
         wait_counter += 1
     
     tinctest.logger.info('\nReached the wait counter : '+str(max_count))
     self.fail('Mirrors are down even after recovery')
示例#2
0
    def test_check_mirror_segments(self):
        wait_counter = 1
        max_count = 5
        newfault = Fault()

        while (wait_counter <= max_count):
            check_mirrors = newfault.are_mirrors_up()
            if (check_mirrors):
                tinctest.logger.info('Mirrors are up..')
                return
            tinctest.logger.info('Waiting [' + str(wait_counter) +
                                 '] for the mirrors segments to come up')
            sleep(10)
            wait_counter += 1

        tinctest.logger.info('\nReached the wait counter : ' + str(max_count))
        self.fail('Mirrors are down even after recovery')
示例#3
0
 def test_run_recovery(self):
     newfault = Fault()
     newfault.run_recovery()
示例#4
0
 def test_kill_mirror_processes(self):
     newfault = Fault()
     # Sleep introduced in order for the Transactions to start first
     sleep(15)
     newfault.kill_processes_with_role('m')
示例#5
0
文件: FaultTest.py 项目: 50wu/gpdb
 def test_run_recovery(self):
     newfault = Fault()
     newfault.run_recovery()
示例#6
0
文件: FaultTest.py 项目: 50wu/gpdb
 def test_kill_mirror_processes(self):
     newfault = Fault()
     # Sleep introduced in order for the Transactions to start first
     sleep(15)
     newfault.kill_processes_with_role('m')