private boolean isHostStateUnknown(Stage stage, Host host, String role) {
    if (null != host &&
      (host.getState().equals(HostState.HEARTBEAT_LOST) || wasAgentRestartedDuringOperation(host, stage, role))) {
      LOG.debug("Abort action since agent is not heartbeating or agent was restarted.");
      return true;
    }
    return false;
  }
Checks if timeout is required.
@param status      the status of the current role
@param stage       the stage
@param host        the host object; can be {@code null} for server-side tasks
@param role        the role
@param currentTime the current
@param taskTimeout the amount of time to determine timeout
@return {@code true} if timeout is needed
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionScheduler.java