Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Problem in this place when waiting for JHS to be started
new Thread() { public void run() { historyServer.start(); }; }.start(); while (historyServer.getServiceState() == STATE.INITED) { LOG.info("Waiting for HistoryServer to start..."); Thread.sleep(1500); }
The service state is updated before the service is actually started. See AbstractServic#start. So it's possible that when the while loop breaks, the service is not yet started.