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

Assert replica set transactions cannot fail to commit their WriteUnitOfWork rather than abort

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Repl 2018-08-27, Repl 2018-09-10, Repl 2018-09-24

    Description

      When we try to commit a single replica set transaction, we call commit on its underlying WriteUnitOfWork. If this commit call fails, we will then mark the transaction as aborted. We currently don't have any unit or integration tests that exercise this case. We could consider testing this by simply mocking out a behavior of the OperationContext so that we throw an exception before we set the committed flag to true.

      Attachments

        Activity

          People

            judah.schvimer@mongodb.com Judah Schvimer
            william.schultz@mongodb.com William Schultz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: