Replicaion scope set in WALObserver is getting reset in Replication.scopeWALEdits().
Because of this problem custom implementation of WALObserver can not be used as a replication filter.
Suppose WALObserver implementation has logic to filter all entries from family f2
This logic can not work as org.apache.hadoop.hbase.replication.regionserver.Replication.scopeWALEdits() recreates and populates scopes.
In Replication.scopeWALEdits(), create scopes map only if WALKey does not have it.