HBASE-12847 TestZKLessSplitOnCluster frequently times out in 0.98 builds(Rajeshbabu)

This commit is contained in:
Rajeshbabu Chintaguntla 2015-01-15 00:00:37 +05:30
parent 1a21c1684c
commit 7e872a81a9
1 changed files with 8 additions and 1 deletions

View File

@ -978,8 +978,15 @@ public class TestSplitTransactionOnCluster {
List<Path> regionDirs =
FSUtils.getRegionDirs(tableDir.getFileSystem(cluster.getConfiguration()), tableDir);
assertEquals(3,regionDirs.size());
cluster.startRegionServer();
regionServer.kill();
cluster.getRegionServerThreads().get(serverWith).join();
// Wait until finish processing of shutdown
while (cluster.getMaster().getServerManager().areDeadServersInProgress()) {
Thread.sleep(10);
}
AssignmentManager am = cluster.getMaster().getAssignmentManager();
am.processServerShutdown(regionServer.getServerName());
assertEquals(am.getRegionStates().getRegionsInTransition().toString(), 0, am
.getRegionStates().getRegionsInTransition().size());
regionDirs =