示例#1
0
 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!! ")
示例#2
0
 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!! ")
示例#3
0
 def test_rebalance_segment(self):
     newfault = Fault()
     self.assertTrue(newfault.rebalance_cluster(),"Segments not rebalanced!!")
示例#4
0
 def test_rebalance_segment(self):
     newfault = Fault()
     self.assertTrue(newfault.rebalance_cluster(),
                     "Segments not rebalanced!!")