From d638ec26ff2ab3d02cf9ec8323aa149f1d4fbf10 Mon Sep 17 00:00:00 2001 From: lujiefsi Date: Mon, 21 Sep 2020 08:25:58 +0800 Subject: [PATCH] HBASE-24976 REST Server failes to start without any error message Signed-off-by: Wellington Chevreuil Signed-off-by: Viraj Jasani Signed-off-by: Guanghao Zhang --- .../java/org/apache/hadoop/hbase/rest/RESTServer.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java index 6e16fd1a4fd..8a9e7a61648 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java @@ -385,13 +385,8 @@ public class RESTServer implements Constants { this.infoServer.setAttribute("hbase.conf", conf); this.infoServer.start(); } - try { - // start server - server.start(); - } catch (Exception e) { - LOG.error(HBaseMarkers.FATAL, "Failed to start server", e); - throw e; - } + // start server + server.start(); } public synchronized void join() throws Exception { @@ -445,6 +440,7 @@ public class RESTServer implements Constants { server.run(); server.join(); } catch (Exception e) { + LOG.error(HBaseMarkers.FATAL, "Failed to start server", e); System.exit(1); }