HBASE-12541 Add misc debug logging to hanging tests in TestHCM and TestBaseLoadBalancer -- ADDENDUM; add waitForNoRegionInTransition from HTU in master branch

This commit is contained in:
stack 2014-11-21 08:15:38 -08:00
parent 3c3e9aef81
commit 42cbdea76d
1 changed files with 9 additions and 0 deletions

View File

@ -3506,4 +3506,13 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
} }
return supportedAlgos.toArray(new Algorithm[supportedAlgos.size()]); return supportedAlgos.toArray(new Algorithm[supportedAlgos.size()]);
} }
/**
* Wait until no regions in transition.
* @param timeout How long to wait.
* @throws Exception
*/
public void waitUntilNoRegionsInTransition(final long timeout) throws Exception {
waitFor(timeout, predicateNoRegionsInTransition());
}
} }