static void scopeWALEdits(WALKey logKey, WALEdit logEdit, Configuration conf) {
    // For bulk load replication we need meta family to know the file we want to replicate.
    if (ReplicationUtils.isReplicationForBulkLoadDataEnabled(conf)) {
      return;
    }
    // Allow replication marker row to pass through.
    if (WALEdit.isReplicationMarkerEdit(logEdit)) {
      return;
    }
    // For replay, or if all the cells are markers, do not need to store replication scope.
    if (
      logEdit.isReplay() || logEdit.getCells().stream().allMatch(c -> WALEdit.isMetaEditFamily(c))
    ) {
      ((WALKeyImpl) logKey).clearReplicationScope();
    }
  }
Utility method used to set the correct scopes on each log key. Doesn't set a scope on keys from
compaction WAL edits and if the scope is local.
@param logKey  Key that may get scoped according to its edits
@param logEdit Edits used to lookup the scopes
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceWALActionListener.java