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 843917c525
commit 845b83b8b6
1 changed files with 8 additions and 3 deletions

View File

@ -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() + "' *****");
}
}