-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
Repl 2019-04-08, Repl 2019-04-22
-
21
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.
- is related to
-
SERVER-41008 Check lastCommittedOpTime instead of awaitReplication for prepare recovery/index build tests
- Closed
- related to
-
SERVER-39762 Fix fastcount after rollback recovery of prepared transactions.
- Closed