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.setAttribute("hbase.conf", conf);
|
||||||
this.infoServer.start();
|
this.infoServer.start();
|
||||||
}
|
}
|
||||||
try {
|
// start server
|
||||||
// start server
|
server.start();
|
||||||
server.start();
|
|
||||||
} catch (Exception e) {
|
|
||||||
LOG.error(HBaseMarkers.FATAL, "Failed to start server", e);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void join() throws Exception {
|
public synchronized void join() throws Exception {
|
||||||
|
@ -442,6 +437,7 @@ public class RESTServer implements Constants {
|
||||||
server.run();
|
server.run();
|
||||||
server.join();
|
server.join();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
LOG.error(HBaseMarkers.FATAL, "Failed to start server", e);
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue