@Override
      public int compare(FileStatus a, FileStatus b) {
        final long aId = getLogIdFromName(a.getPath().getName());
        final long bId = getLogIdFromName(b.getPath().getName());
        return Long.compare(aId, bId);
      }
Remove all logs with logId <= {@code lastLogId}.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureStore.java