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')
def gpstop_db_immediate(self): ''' Stop database with immediate mode ''' newfault = Fault() sleep(5) newfault.stop_db('i')
def gpstop_db(self): ''' Stop database with normal mode ''' newfault = Fault() sleep(5) newfault.stop_db()
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')