示例#1
0
文件: fault.py 项目: LJoNe/gpdb
 def test_changetracking_kill_primary(self):
     sleep(30) #sleep 30sec, so that there will be some inflight Transactions
     is_ct_mode_enabled = self.do_changetracking()
     if not is_ct_mode_enabled:
         self.fail("Change Tracking mode not enabled!!")
     newfault = Fault()
     sleep(100)
     tinctest.logger.info('Executing incremental recovery in the background')
     newfault._run_sys_cmd('gprecoverseg -a &')
     newfault.stop_db('i')
示例#2
0
 def gpstop_db_immediate(self):
     ''' Stop database with immediate mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db('i')
示例#3
0
 def gpstop_db(self):
     ''' Stop database with normal mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db()
示例#4
0
 def test_recovery_full_abort(self):
     newfault = Fault()
     sleep(100)
     newfault._run_sys_cmd('gprecoverseg -aF &')
     newfault.stop_db('i')
示例#5
0
 def gpstop_db_immediate(self):
     ''' Stop database with immediate mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db('i')
示例#6
0
 def gpstop_db(self):
     ''' Stop database with normal mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db()
示例#7
0
 def test_recovery_full_abort(self):
     newfault = Fault()
     sleep(100)
     newfault._run_sys_cmd('gprecoverseg -aF &')
     newfault.stop_db('i')
 def test_stop_db(self):
     newfault = Fault()
     newfault.stop_db('i')