@Override
    public void load(ProcedureLoader loader) throws IOException {
      loader.setMaxProcId(maxProcId.get());
      ProcedureTree tree = ProcedureTree.build(procMap.values());
      loader.load(tree.getValidProcs());
      loader.handleCorrupted(tree.getCorruptedProcs());
    }
Testcase for HBASE-28210, where we persist the procedure which has been inserted later to
{@link RootProcedureState} first and then crash, and then cause holes in stack ids when loading,
and finally fail the start up of master.
hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/TestStackIdHoles.java