Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40269

commitTransaction should assert that the prepare oplog entry is majority committed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.10
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2019-04-08, Repl 2019-04-22
    • 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lingzhi.deng Lingzhi Deng
              Reporter:
              louis.williams Louis Williams
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: