[SERVER-66808] Remove undocumented fields from the change stream error Created: 26/May/22 Updated: 29/Oct/23 Resolved: 06/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Change streams |
| Affects Version/s: | 6.0.0-rc7 |
| Fix Version/s: | 6.0.1, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Katya Kamenieva | Assignee: | Catalin Sumanaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v6.0
|
||||||||
| Sprint: | QE 2022-06-27, QE 2022-07-11 | ||||||||
| Participants: | |||||||||
| Description |
|
When change stream errors because pre-image is not available it returns `preImageId` and `rawOplogUpdateSpec`. Open a change stream with pre or post image required on a collection that doesn't have pre-images enabled
Make an update to collection
Read the change stream
For update event it produces an error like this if you requested post-image:
Or like this if pre-image was requested:
|
| Comments |
| Comment by Githook User [ 25/Jul/22 ] |
|
Author: {'name': 'csum112', 'email': 'catalin.sumanaru@mongodb.com'}Message: |
| Comment by Githook User [ 05/Jul/22 ] |
|
Author: {'name': 'csum112', 'email': 'catalin.sumanaru@mongodb.com'}Message: |