[SERVER-33684] Mongo Change Streams not returning all the updates to the collection Created: 05/Mar/18 Updated: 02/Apr/18 Resolved: 05/Mar/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | SAMBIT P KHANDAI | Assignee: | Kelsey Schubert |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
I am trying to use Change Streams to lookup/monitor the changes to a mongo collection.
While using updateMany to update multiple documents at once, I'm not able to see all the changed documents. However if I update one at a time, then I see each change in the Stream.
Results:
|
| Comments |
| Comment by Kelsey Schubert [ 05/Mar/18 ] |
|
Thanks for the update. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. Kind regards, |
| Comment by SAMBIT P KHANDAI [ 05/Mar/18 ] |
|
Thanks. Got the problem. Works fine now. |
| Comment by Asya Kamsky [ 05/Mar/18 ] |
|
This works correctly for me. I suspect the issue is that you are not continuing to check the cursor. Your next and print should be in some sort of a loop. |