Exemple #1
0
 def do_changetracking(self, segment_type='primary'):
     newfault = Fault()
     newfault.changetracking(segment_type)
     rtrycnt = 0
     max_rtrycnt = 20
     while (newfault.is_changetracking() == False and rtrycnt < max_rtrycnt):
         tinctest.logger.info("waiting [%s] for DB to go into change tracking" %rtrycnt)
         sleep(10)
         rtrycnt = rtrycnt + 1
     if rtrycnt == max_rtrycnt:
         tinctest.logger.error("Segments not up after incremental recovery!!")
         return False
     return True