private void generateReplicationMarkerEdits(Path path, RegionInfo regionInfo) throws IOException {
    long timestamp = EnvironmentEdgeManager.currentTime();
    fs.mkdirs(WALDIR);
    try (Writer writer = wals.createWALWriter(fs, path)) {
      WALProtos.ReplicationMarkerDescriptor.Builder builder =
        WALProtos.ReplicationMarkerDescriptor.newBuilder();
      builder.setWalName("wal-name");
      builder.setRegionServerName("rs-name");
      builder.setOffset(0L);
      WALProtos.ReplicationMarkerDescriptor desc = builder.build();
      appendEntry(writer, REPLICATION_SINK_TRACKER_TABLE_NAME, regionInfo.getEncodedNameAsBytes(),
        getRowKey(desc.getRegionServerName(), timestamp), METAFAMILY, REPLICATION_MARKER, VALUE, 1);
    }
  }
Tests that WalSplitter ignores replication marker edits.
hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALSplit.java