When inserting documents in CB Server as a part of a transaction blank documents are created on the server. See
MB-39941 for details.
Eventing functions are able to 'see' these empty documents and are triggered twice. Once for the empty docs before commit and again after the docs are committed. My eventing function copies all docs from a source bucket to target bucket. As seen below, the docs are visible in Target bucket even before transaction is committed.
|For Gerrit Dashboard: MB-43704|
|147333,4||MB-43704 : Skip sending ACID Transactions mutations sent to Indexer before commit||unstable||indexing||Status: MERGED||+2||+1|
|147815,5||MB-43704 : Add stats to count the Skipped Transaction Mutations||unstable||indexing||Status: MERGED||+2||+1|