From 4cba3a6fa4d2162ce653e048028e720c53e1820f Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 11 Jan 2018 17:47:00 -0800 Subject: [PATCH] HBASE-19694 The initialization order for a fresh cluster is incorrect Addendum. Adds in a missing line that helps debugging. --- .../src/main/java/org/apache/hadoop/hbase/util/JVMClusterUtil.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 00410af2fa..1ac790f9fb 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 { -- 2.11.0 (Apple Git-81)