protected synchronized void addSubProcedure(Procedure<Env> proc) {
    if (!proc.hasParent()) {
      return;
    }
    if (subprocs == null) {
      subprocs = new HashSet<>();
    }
    subprocs.add(proc);
  }
Called by the {@link ProcedureExecutor} after the procedure step is completed, to add the step
to the rollback list (or procedure stack).
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/RootProcedureStack.java