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.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 {
|
||||||
@ -445,6 +440,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…
x
Reference in New Issue
Block a user