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

Clean up transaction error codes

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2018-05-07

    Description

      When a transaction is aborted implicitly, we currently return different error codes due to different timing. When an operation is running and the transaction gets aborted, we return TransactionAborted, but if the transaction is aborted between operations, the next operation gets NoSuchTransaction. We'd like to unify them to be NoSuchTransaction. This will also be consistent with commands sent after failover, where the new primary expects startTransaction field and returns NoSuchTransaction.

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: