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:
lujiefsi 2020-09-21 08:25:58 +08:00 committed by GitHub
parent b5adfe1031
commit 8efd2509e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -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);
}