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:
parent
843917c525
commit
845b83b8b6
|
@ -353,9 +353,14 @@ public class RESTServer implements Constants {
|
||||||
infoServer.setAttribute("hbase.conf", conf);
|
infoServer.setAttribute("hbase.conf", conf);
|
||||||
infoServer.start();
|
infoServer.start();
|
||||||
}
|
}
|
||||||
// start server
|
try {
|
||||||
server.start();
|
// start server
|
||||||
server.join();
|
server.start();
|
||||||
|
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() + "' *****");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue