def setUp(self): ''' Need to rebalance cluster as primary segments are killed during test''' super(PersistentTables,self).setUp() tinctest.logger.info('***Rebalancing cluster state***') fault_recovery = Fault() if not fault_recovery.rebalance_cluster(): raise ClusterStateException("**FATAL!! Cluster rebalancing failed - segments went down after \ gprecoverseg -ar, even incremental recovery couldn't bring the segments up. \ Cannot proceed with the tests!! ")
def setUp(self): ''' Need to rebalance cluster as primary segments are killed during test''' super(PersistentTables, self).setUp() tinctest.logger.info('***Rebalancing cluster state***') fault_recovery = Fault() if not fault_recovery.rebalance_cluster(): raise ClusterStateException( "**FATAL!! Cluster rebalancing failed - segments went down after \ gprecoverseg -ar, even incremental recovery couldn't bring the segments up. \ Cannot proceed with the tests!! ")
def test_rebalance_segment(self): newfault = Fault() self.assertTrue(newfault.rebalance_cluster(),"Segments not rebalanced!!")
def test_rebalance_segment(self): newfault = Fault() self.assertTrue(newfault.rebalance_cluster(), "Segments not rebalanced!!")