public synchronized boolean isFailed() {
    return state == ProcedureState.FAILED || state == ProcedureState.ROLLEDBACK;
  }
@return true if the procedure has failed. It may or may not have rolled back.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/Procedure.java