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:02 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 843917c52 -> 845b83b8b


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/845b83b8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/845b83b8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/845b83b8

Branch: refs/heads/master
Commit: 845b83b8b679697a072ee91ea1d3ced52dabbe5b
Parents: 843917c
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:38:53 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/845b83b8/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 2b4cc19..907a220 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
@@ -353,9 +353,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