/** * Wait on region to clear regions-in-transition. * * <p>If the region isn't in transition, returns immediately. Otherwise, method blocks until the * region is out of transition. */ public synchronized void waitOnRegionToClearRegionsInTransition(final HRegionInfo hri) throws InterruptedException { if (!isRegionInTransition(hri)) return; while (!server.isStopped() && isRegionInTransition(hri)) { RegionState rs = getRegionState(hri); LOG.info("Waiting on " + rs + " to clear regions-in-transition"); waitForUpdate(100); } if (server.isStopped()) { LOG.info("Giving up wait on region in " + "transition because stoppable.isStopped is set"); } }