This issue only affects deployments that using the scopes/collections feature from Couchbase 7+.
The code in ElasticsearchWriter.write() that detects duplicate document IDs in the write buffer only considers the document ID when looking for duplicates. Two documents may be considered duplicates even if they are destined for different indexes because they come from different collections.
Fix the detection algorithm to consider the destination index as well as the document ID.
|For Gerrit Dashboard: CBES-193|
|147022,3||CBES-193 Duplicate eviction does not consider scope/collection||master||couchbase-elasticsearch-connector||Status: MERGED||+2||+1|
|Field||Original Value||New Value|
|Status||New [ 10003 ]||Open [ 1 ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Workflow||Couchbase SDK Workflow [ 193980 ]||Couchbase SDK Workflow with Review [ 250765 ]|