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>
This commit is contained in:
Guangxu Cheng 2017-09-26 15:33:02 +08:00 committed by Michael Stack
parent e97738f0c2
commit 7e9534746c
1 changed files with 8 additions and 3 deletions

View File

@ -355,9 +355,14 @@ public class RESTServer implements Constants {
infoServer.setAttribute("hbase.conf", conf); infoServer.setAttribute("hbase.conf", conf);
infoServer.start(); infoServer.start();
} }
try {
// start server // start server
server.start(); server.start();
server.join(); server.join();
} catch (Exception e) {
LOG.fatal("Failed to start server", e);
System.exit(1);
}
LOG.info("***** STOPPING service '" + RESTServer.class.getSimpleName() + "' *****"); LOG.info("***** STOPPING service '" + RESTServer.class.getSimpleName() + "' *****");
} }
} }