public void merge(WALProcedureMap other) {
    other.procMap.forEach(procMap::putIfAbsent);
    maxModifiedProcId = Math.max(maxModifiedProcId, other.maxModifiedProcId);
    minModifiedProcId = Math.max(minModifiedProcId, other.minModifiedProcId);
    other.procMap.clear();
    other.maxModifiedProcId = Long.MIN_VALUE;
    other.minModifiedProcId = Long.MAX_VALUE;
  }
Merge the given {@link WALProcedureMap} into this one. The {@link WALProcedureMap} passed in
will be cleared after merging.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureMap.java