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
e97738f0c2
commit
7e9534746c
|
@ -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() + "' *****");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue