Details
Description
When uncompress data for filtering, XDCR assumes document is JSON:
https://github.com/couchbase/goxdcr/blob/mad-hatter/utils/utils.go#L2826
It will return error if the last byte of the document is not '}'.
This affect the replication in two ways:
- If replication has filter, needToReplication will be false for compressed binary document so it will not be replicated.
- If replication has no filter, this code is used to filter transaction data. Because of the error, the data is not replicated.
In both cases, the data is not replicated. This only affects compressed binary data that contains xattrs.