bwaldvogel/mongo-java-server

Bug when opening change stream with filter matching documents on two diferent collections

Closed this issue · 1 comments

Due to an error in the oplog implementation, a change stream opened against a collection would pick up documents from another collection if they match the filter.
The solution is to filter documents from the oplog based on their namespace "."
In this way preventing change streams to pick up documents from collections other than the one being watch.

Thanks for your contribution!