def test_kill_mirror(self): """ [feature]: Kills mirror gp0 segment """ newfault = Fault() hosts = newfault.get_segment_host(preferred_role='m',content=0) if not newfault.kill_mirror_gp0(hosts): self.fail("Could not the kill the mirror process, cannot proceed further!") rtrycnt = 0 while( not newfault.is_changetracking()): tinctest.logger.info("Waiting [%s] for DB to go in CT mode" %rtrycnt) rtrycnt = rtrycnt + 1
def test_recovery_with_new_loc(self): """ [feature]: Performs recovery by creating a configuration file with new segment locations """ newfault = Fault() config = GPDBConfig() hosts = newfault.get_segment_host() newfault.create_new_loc_config(hosts, orig_filename='recovery.conf', new_filename='recovery_new.conf') if not newfault.run_recovery_with_config(filename='recovery_new.conf'): self.fail("*** Incremental recovery with config file recovery_new.conf failed") rtrycnt = 0 while (not config.is_not_insync_segments()): tinctest.logger.info("Waiting [%s] for DB to recover" %rtrycnt) rtrycnt = rtrycnt + 1