[SERVER-71886] logOplogEntries() should create well-formed MutableOplogEntry Created: 06/Dec/22  Updated: 29/Oct/23  Resolved: 06/Dec/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-12-12
Participants:

 Description   

logOplogEntries() generates a MutableOplogEntry without an initial namespace or optype (this is done later in logApplyOps). This can trigger an invariant if we attempt to log the oplog entry using DurablelOperation::toBSON.



 Comments   
Comment by Githook User [ 06/Dec/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-71886 logApplyOps() expects valid optype and namespace on MutableOplogEntry
Branch: master
https://github.com/mongodb/mongo/commit/21b6fdeee879d8f55851e495f6332bcba337a8bc

Comment by Benety Goh [ 06/Dec/22 ]

Code review:
SERVER-71886 logApplyOps() expects valid optype and namespace on MutableOplogEntry
https://github.com/10gen/mongo/pull/9148
Base branch: master

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