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

Clean up transaction error codes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2018-05-07

      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.

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

              Created:
              Updated:
              Resolved: