[SERVER-85156] dbCheck throws unexpected "invalidate" change stream event [5.0] Created: 12/Jan/24  Updated: 18/Jan/24  Resolved: 15/Jan/24

Status: Closed
Project: Core Server
Component/s: Change streams
Affects Version/s: 5.0.24
Fix Version/s: 5.0.25, 4.4.29

Type: Bug Priority: Major - P3
Reporter: Bernard Gorman Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File runCsDbCheckTest.js    
Issue Links:
Backports
Related
related to SERVER-85223 Add test to confirm that change strea... Backlog
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: QE 2024-01-22
Participants:

 Description   

The dbCheck command generates oplog entries which, on 5.0 but not 6.0 or later, can pass through the change stream oplog filter and generate a spurious invalidate event due to this fallback mechanism for unrecognised oplog entries. We should ensure that this and any other unknown commands are filtered out by change streams at the oplog level.



 Comments   
Comment by Githook User [ 17/Jan/24 ]

Author:

{'name': 'Bernard Gorman', 'email': 'gormanb@users.noreply.github.com', 'username': 'gormanb'}

Message: SERVER-85156 Change stream oplog filter should not assume that op 'c' events are always on the $cmd namespace (#18057)

(cherry picked from commit ff9491c9e3e8db184fd33eea7bf4b9bc88f21f0c)

GitOrigin-RevId: 70354cb120620e2bc5eb4a5ded7212ea6778518a
Branch: v4.4
https://github.com/mongodb/mongo/commit/3fac62c437b41f520655f388d749887eb7b59240

Comment by Githook User [ 15/Jan/24 ]

Author:

{'name': 'Bernard Gorman', 'email': 'gormanb@users.noreply.github.com', 'username': 'gormanb'}

Message: SERVER-85156 Change stream oplog filter should not assume that op 'c' events are always on the $cmd namespace (#18057)

GitOrigin-RevId: ff9491c9e3e8db184fd33eea7bf4b9bc88f21f0c
Branch: v5.0
https://github.com/mongodb/mongo/commit/46812b3374c2fed804f9b64103a77e11a1ffdb39

Generated at Thu Feb 08 06:56:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.