[SERVER-40269] commitTransaction should assert that the prepare oplog entry is majority committed Created: 21/Mar/19  Updated: 29/Oct/23  Resolved: 09/Apr/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.1.10

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: prepare_errors
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-39762 Fix fastcount after rollback recovery... Closed
is related to SERVER-41008 Check lastCommittedOpTime instead of ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2019-04-08, Repl 2019-04-22
Participants:
Linked BF Score: 21

 Description   

There are no assertions that a prepare oplog entry must be majority committed before "commitTransaction" is received. This is only an understood precondition that is not enforced. With this assertion, we can guarantee collection counts are correct during rollback because it would be impossible for a "prepare" and "commit" operation to both be rolled back. See SERVER-39762.



 Comments   
Comment by Githook User [ 09/Apr/19 ]

Author:

{'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}

Message: SERVER-40269: commitTransaction should assert that the prepare oplog entry is majority committed
Branch: master
https://github.com/mongodb/mongo/commit/67e08418c8e9722768ead723bafda7e229660291

Generated at Thu Feb 08 04:54:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.