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

commitTransaction should assert that the prepare oplog entry is majority committed

    • 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.

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

              Created:
              Updated:
              Resolved: