@Test
  public void testSplitRemovesReplicationMarkerEdits() throws IOException {
    RegionInfo regionInfo = ReplicationMarkerChore.REGION_INFO;
    Path path = new Path(WALDIR, WAL_FILE_PREFIX + "1");
    generateReplicationMarkerEdits(path, regionInfo);
    useDifferentDFSClient();
    List<FileStatus> logFiles =
      SplitLogManager.getFileList(conf, Collections.singletonList(WALDIR), null);
    assertEquals(1, logFiles.size());
    assertEquals(path, logFiles.get(0).getPath());
    List<Path> splitPaths = WALSplitter.split(HBASELOGDIR, WALDIR, OLDLOGDIR, fs, conf, wals);
    // Make sure that WALSplitter doesn't fail.
    assertEquals(0, splitPaths.size());
  }
Tests that WalSplitter ignores replication marker edits.
hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALSplit.java