HBASE-24976 Printing the swallowed exception
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
b5adfe1031
commit
8efd2509e9
|
@ -382,13 +382,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 {
|
||||
|
@ -442,6 +437,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…
Reference in New Issue