hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/StateContext.java
boolean isExiting(DatanodeStateMachine.DatanodeStates newState) {
    boolean isExiting = state != newState && stateExecutionCount.get() > 0;
    if(isExiting) {
      stateExecutionCount.set(0);
    }
    return isExiting;
  }
/**
   * Returns true if we are exiting from the current state.
   *
   * @param newState - newState.
   * @return boolean
   */
Returns true if we are exiting from the current state.
@param newState - newState.
@return boolean
Returns true if we are exiting from the current state . @param newState - newState . @return boolean
boolean isExiting(DatanodeStateMachine.DatanodeStates newState) {
    boolean isExiting = state != newState && stateExecutionCount.get() > 0;
    if(isExiting) {
      stateExecutionCount.set(0);
    }
    return isExiting;
  }
boolean isExiting ( DatanodeStateMachine . DatanodeStates newState ) { boolean isExiting = state != newState && stateExecutionCount . get ( ) > 0 ; if ( isExiting ) { stateExecutionCount . set ( 0 ) ; } return isExiting ; }
Returns true if we are exiting from the current state.
Returns true if we are exiting from the current state .