private static void mkdir(FileSystem fs, Path dir) throws IOException {
    if (!fs.mkdirs(dir)) {
      LOG.warn("Failed mkdir {}", dir);
    }
  }
Moves processed logs to a oldLogDir after successful processing Moves corrupted logs (any log
that couldn't be successfully parsed to corruptDir (.corrupt) for later investigation
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALSplitUtil.java