Example #1
0
 def test_change_tracking(self):
     newfault = Steps()
     newfault.changetracking(type='mirror')
     while (newfault.is_dbdown() == False):
         tinctest.logger.info("waiting for DB to go into change tracking")
         sleep(10)
     return
Example #2
0
File: steps.py Project: 50wu/gpdb
 def test_change_tracking(self):
     newfault = Steps()
     newfault.changetracking( type = 'mirror')
     while (newfault.is_dbdown() == False):
         tinctest.logger.info("waiting for DB to go into change tracking")
         sleep(10)
     return
Example #3
0
 def test_checkLog_recover(self):
     '''Checks if change_tracking disabled message is printed to the log, 
        if returns true, remove the fill files , run recoverseg '''
     tinctest.logger.info('coming here in chacklog')
     cl = Steps()
     if (cl.checkLogMessage()):
         tinctest.logger.info('coming in if')
         hosts = cl.get_segments()
         for host in hosts:
             cl.remove_fillfiles('new_space', host[0])
         cl.recover_segments()
         while (cl.is_dbdown() == True):
             tinctest.logger.info('Waiting for DB to be in sync')
Example #4
0
File: steps.py Project: 50wu/gpdb
 def test_checkLog_recover(self):
     '''Checks if change_tracking disabled message is printed to the log, 
        if returns true, remove the fill files , run recoverseg '''
     tinctest.logger.info('coming here in chacklog')
     cl = Steps()
     if(cl.checkLogMessage()):
         tinctest.logger.info('coming in if')
         hosts = cl.get_segments()
         for host in hosts:
             cl.remove_fillfiles('new_space', host[0])
         cl.recover_segments()
         while(cl.is_dbdown() == True):
             tinctest.logger.info('Waiting for DB to be in sync')