From 42cbdea76d944deabb965b7514039e320383b527 Mon Sep 17 00:00:00 2001 From: stack Date: Fri, 21 Nov 2014 08:15:38 -0800 Subject: [PATCH] HBASE-12541 Add misc debug logging to hanging tests in TestHCM and TestBaseLoadBalancer -- ADDENDUM; add waitForNoRegionInTransition from HTU in master branch --- .../org/apache/hadoop/hbase/HBaseTestingUtility.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 7d457f21555..fdf597d075a 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -3506,4 +3506,13 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility { } 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()); + } }