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

XMLWordPrintableJSON

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

      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.

            Assignee:
            Judah Schvimer
            Reporter:
            Will Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: