public static void writeReplicationMarkerAndSync(WAL wal, MultiVersionConcurrencyControl mvcc,
    RegionInfo regionInfo, byte[] rowKey, long timestamp) throws IOException {
    NavigableMap<byte[], Integer> replicationScope = new TreeMap<>(Bytes.BYTES_COMPARATOR);
    replicationScope.put(WALEdit.METAFAMILY, REPLICATION_SCOPE_GLOBAL);
    writeMarker(wal, replicationScope, regionInfo,
      WALEdit.createReplicationMarkerEdit(rowKey, timestamp), mvcc, null, null);
  }
Public because of FSHLog. Should be package-private
@param isRecoverEdits the created writer is for recovered edits or WAL. For recovered edits, it
                      is true and for WAL it is false.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALUtil.java