HBASE-24976 REST Server failes to start without any error message
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
parent
5e910fa0d6
commit
d638ec26ff
@ -385,13 +385,8 @@ public class RESTServer implements Constants {
|
||||
this.infoServer.setAttribute("hbase.conf", conf);
|
||||
this.infoServer.start();
|
||||
}
|
||||
try {
|
||||
// start server
|
||||
server.start();
|
||||
} catch (Exception e) {
|
||||
LOG.error(HBaseMarkers.FATAL, "Failed to start server", e);
|
||||
throw e;
|
||||
}
|
||||
// start server
|
||||
server.start();
|
||||
}
|
||||
|
||||
public synchronized void join() throws Exception {
|
||||
@ -445,6 +440,7 @@ public class RESTServer implements Constants {
|
||||
server.run();
|
||||
server.join();
|
||||
} catch (Exception e) {
|
||||
LOG.error(HBaseMarkers.FATAL, "Failed to start server", e);
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user