Revert "HBASE-24976 Printing the swallowed exception"

This reverts commit 8efd2509e9.
This commit is contained in:
Guanghao Zhang 2020-09-21 08:27:38 +08:00
parent 8efd2509e9
commit 8c11007b7c
1 changed files with 7 additions and 3 deletions

View File

@ -382,8 +382,13 @@ public class RESTServer implements Constants {
this.infoServer.setAttribute("hbase.conf", conf);
this.infoServer.start();
}
// start server
server.start();
try {
// start server
server.start();
} catch (Exception e) {
LOG.error(HBaseMarkers.FATAL, "Failed to start server", e);
throw e;
}
}
public synchronized void join() throws Exception {
@ -437,7 +442,6 @@ public class RESTServer implements Constants {
server.run();
server.join();
} catch (Exception e) {
LOG.error(HBaseMarkers.FATAL, "Failed to start server", e);
System.exit(1);
}