protected synchronized void setFailure(final ProcedureException exception) {
    this.exception = exception;
    if (!isFinished()) {
      setState(ProcedureState.FAILED);
    }
  }
@return true if the procedure is waiting for a child to finish or for an external event.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/Procedure.java