@Test
  public void testChildRollbackLoad() throws Exception {
    procEnv.toggleKillBeforeStoreUpdate = false;
    procEnv.triggerRollbackOnChild = true;

    TestRootProcedure proc = new TestRootProcedure();
    long procId = ProcedureTestingUtility.submitAndWait(procExecutor, proc);
    ProcedureTestingUtility.restart(procExecutor);
    ProcedureTestingUtility.waitProcedure(procExecutor, proc);

    assertProcFailed(procId);
  }
Test the state setting that happens after store to WAL; in particular the bit where we set the
parent runnable again after its children have all completed successfully. See HBASE-20978.
hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/TestChildProcedures.java