public void setDeletedIfModified(long... procId) {
    BitSetNode node = null;
    for (int i = 0; i < procId.length; ++i) {
      node = lookupClosestNode(node, procId[i]);
      if (node != null && node.isModified(procId[i])) {
        node.delete(procId[i]);
      }
    }
  }
Set the given bit for the procId to delete if it was modified before.
<p/>
This method is used to test whether a procedure wal file can be safely deleted, as if all the
procedures in the given procedure wal file has been modified in the new procedure wal files,
then we can delete it.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureStoreTracker.java