[SERVER-62003] Null-equality on 'fullDocument' is not rewritten correctly for change stream 'delete' events Created: 13/Dec/21  Updated: 29/Oct/23  Resolved: 15/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.2.0-rc2, 5.1.2

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.2, v5.1
Sprint: QE 2021-12-27
Participants:

 Description   

Null-equality predicates on fullDocument or its subfields are not rewritten correctly into the oplog for delete events, causing them to be omitted. This issue does not manifest for $exists:true, $exists:false, $ne:null, other comparison operators or their negations; only $eq:null, $gte:null and $lte:null are impacted.



 Comments   
Comment by Githook User [ 16/Dec/21 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-62003 Fix change stream rewrite for 'fullDocument' null-equality on 'delete' and non-CRUD oplog entries

(cherry picked from commit 577a111d0f31418b60b0b3ee999ffb7657943ea5)
Branch: v5.2
https://github.com/mongodb/mongo/commit/3f5925c410dca926507881ba12bfe5e27187ba7a

Comment by Githook User [ 15/Dec/21 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-62003 Fix change stream rewrite for 'fullDocument' null-equality on 'delete' and non-CRUD oplog entries

(cherry picked from commit 577a111d0f31418b60b0b3ee999ffb7657943ea5)
Branch: v5.1
https://github.com/mongodb/mongo/commit/34fdf23024f14b0ca77d05f6abb94980671388b0

Comment by Githook User [ 15/Dec/21 ]

Author:

{'name': 'Bernard Gorman', 'email': 'bernard.gorman@gmail.com', 'username': 'gormanb'}

Message: SERVER-62003 Fix change stream rewrite for 'fullDocument' null-equality on 'delete' and non-CRUD oplog entries
Branch: master
https://github.com/mongodb/mongo/commit/577a111d0f31418b60b0b3ee999ffb7657943ea5

Generated at Thu Feb 08 05:53:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.