static void archive(final Path wal, final boolean corrupt, final Path oldWALDir,
    final FileSystem walFS, final Configuration conf) throws IOException {
    Path dir;
    Path target;
    if (corrupt) {
      dir = new Path(CommonFSUtils.getWALRootDir(conf), HConstants.CORRUPT_DIR_NAME);
      if (conf.get("hbase.regionserver.hlog.splitlog.corrupt.dir") != null) {
        LOG.warn("hbase.regionserver.hlog.splitlog.corrupt.dir is deprecated. Default to {}", dir);
      }
      target = new Path(dir, wal.getName());
    } else {
      dir = oldWALDir;
      target = AbstractFSWAL.getWALArchivePath(oldWALDir, wal);
    }
    mkdir(walFS, dir);
    moveWAL(walFS, wal, target);
  }
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