Repository: hbase
Updated Branches:
  refs/heads/master f0ba7922f -> c799b0e69


HBASE-19694 The initialization order for a fresh cluster is incorrect Addendum. 
Adds in a missing line that helps debugging.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c799b0e6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c799b0e6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c799b0e6

Branch: refs/heads/master
Commit: c799b0e69bed5f0e894a703bcfbd208f44c980e7
Parents: f0ba792
Author: Michael Stack <[email protected]>
Authored: Thu Jan 11 17:47:00 2018 -0800
Committer: Michael Stack <[email protected]>
Committed: Fri Jan 12 13:09:05 2018 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/util/JVMClusterUtil.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c799b0e6/hbase-server/src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java
index 00410af..1ac790f 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java
@@ -187,7 +187,9 @@ public class JVMClusterUtil {
       int startTimeout = configuration != null ? Integer.parseInt(
         configuration.get("hbase.master.start.timeout.localHBaseCluster", 
"30000")) : 30000;
       if (System.currentTimeMillis() > startTime + startTimeout) {
-        throw new RuntimeException(String.format("Master not active after %s 
seconds", startTimeout));
+        String msg = "Master not active after " + startTimeout + "ms";
+        Threads.printThreadInfo(System.out, "Thread dump because: " + msg);
+        throw new RuntimeException(msg);
       }
     }
 
@@ -216,8 +218,7 @@ public class JVMClusterUtil {
       }
       if (System.currentTimeMillis() > startTime + maxwait) {
         String msg = "Master not initialized after " + maxwait + "ms seconds";
-        Threads.printThreadInfo(System.out,
-          "Thread dump because: " + msg);
+        Threads.printThreadInfo(System.out, "Thread dump because: " + msg);
         throw new RuntimeException(msg);
       }
       try {

Reply via email to