Exemplo n.º 1
0
Arquivo: fault.py Projeto: 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')
Exemplo n.º 2
0
 def gpstop_db_immediate(self):
     ''' Stop database with immediate mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db('i')
Exemplo n.º 3
0
 def gpstop_db(self):
     ''' Stop database with normal mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db()
Exemplo n.º 4
0
 def test_recovery_full_abort(self):
     newfault = Fault()
     sleep(100)
     newfault._run_sys_cmd('gprecoverseg -aF &')
     newfault.stop_db('i')
Exemplo n.º 5
0
 def gpstop_db_immediate(self):
     ''' Stop database with immediate mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db('i')
Exemplo n.º 6
0
 def gpstop_db(self):
     ''' Stop database with normal mode '''
     newfault = Fault()
     sleep(5)
     newfault.stop_db()
Exemplo n.º 7
0
 def test_recovery_full_abort(self):
     newfault = Fault()
     sleep(100)
     newfault._run_sys_cmd('gprecoverseg -aF &')
     newfault.stop_db('i')
Exemplo n.º 8
0
 def test_stop_db(self):
     newfault = Fault()
     newfault.stop_db('i')