Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
As per the discussion in YARN-3971 the we should be setting the service state to STARTED only after serviceStart()
Currently AbstractService#start() is set
if (stateModel.enterState(STATE.STARTED) != STATE.STARTED) { try { startTime = System.currentTimeMillis(); serviceStart(); .. }
enterState sets the service state to proposed state. So in service.getServiceState in serviceStart() will return STARTED .