hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-18880 Failed to start rest server if the value of hbase.rest.threads.max is too small.
Date Wed, 27 Sep 2017 03:39:33 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 e97738f0c -> 7e9534746


HBASE-18880 Failed to start rest server if the value of hbase.rest.threads.max is too small.

Signed-off-by: Michael Stack <stack@apache.org>


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

Branch: refs/heads/branch-2
Commit: 7e9534746c641dab81f910eedd33cca42cb8a9aa
Parents: e97738f
Author: Guangxu Cheng <guangxucheng@gmail.com>
Authored: Tue Sep 26 15:33:02 2017 +0800
Committer: Michael Stack <stack@apache.org>
Committed: Tue Sep 26 20:39:27 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/rest/RESTServer.java    | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/7e953474/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
----------------------------------------------------------------------
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 0e4712d..e3a9cd1 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
@@ -355,9 +355,14 @@ public class RESTServer implements Constants {
       infoServer.setAttribute("hbase.conf", conf);
       infoServer.start();
     }
-    // start server
-    server.start();
-    server.join();
+    try {
+      // start server
+      server.start();
+      server.join();
+    } catch (Exception e) {
+      LOG.fatal("Failed to start server", e);
+      System.exit(1);
+    }
     LOG.info("***** STOPPING service '" + RESTServer.class.getSimpleName() + "' *****");
   }
 }


Mime
View raw message