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

commitTransaction should assert that the prepare oplog entry is majority committed

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Repl 2019-04-08, Repl 2019-04-22
    • 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

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: