HBASE-12847 TestZKLessSplitOnCluster frequently times out in 0.98 builds(Rajeshbabu)
This commit is contained in:
parent
1a21c1684c
commit
7e872a81a9
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue