Example #1
0
File: fault.py Project: LJoNe/gpdb
 def test_failover_to_mirror_during_transactions(self):
     tinctest.logger.debug('Fault Injection Tests - starting the failover to mirror scenario')
     #Sleep introduced so that the concurrently running generate_sqls gets time 
     #to actually generate some load
     tinctest.logger.info('Sleep introduced of 120 sec')
     sleep(120)
     newfault = Fault()
     newfault.kill_processes_with_role('p')
     newfault.restart_db()
     tinctest.logger.debug('Fault Injection Tests - failover to mirror completed')
Example #2
0
File: fault.py Project: LJoNe/gpdb
 def test_put_system_in_change_tracking_mode(self):
     ''' Putting the system in Change Tracking mode '''
     newfault = Fault()
     config = GPDBConfig()
     tinctest.logger.info('Putting the system in change tracking mode')
     newfault.kill_processes_with_role('p')