[SERVER-73560] disallow invalid term in OpTIme::asQuery() and appendAsQuery() Created: 02/Feb/23  Updated: 29/Oct/23  Resolved: 13/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.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

Issue Links:
Related
is related to SERVER-18195 Read after optime (repl only) Closed
is related to SERVER-19205 Use real names and syntax for read co... Closed
is related to SERVER-31030 Only transfer session related oplog e... Closed
is related to SERVER-31963 Remove code for replication protocol ... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-02-20
Participants:

 Description   

After removing PV0, we should not have oplog entries with term -1. For subsystems that need to locate oplog entries by optime, we should not be using PV0-style OpTimes.
OpTime::appendAsQuery() is a function that is used for this purpose and we should be able to disallow invalid/unintialized terms in the function's code rather than querying for a missing term field.



 Comments   
Comment by Githook User [ 11/Feb/23 ]

Author:

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

Message: SERVER-73560 require valid term in OpTime::asQuery()
Branch: master
https://github.com/mongodb/mongo/commit/7930e290348658f8592cabb8826e062e84a69a01

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