Add abort cause to NoSuchTransaction error when transaction was aborted

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In the case where we return NoSuchTransaction due to the transaction having been aborted, it would be helpful to users to be able to see the reason why (e.g. the transaction exceeded TransactionLifetimeLimitSeconds). This can be useful for e.g. large batched writes where the transaction ends up getting aborted by the periodic cleanup job in between batches.

      https://github.com/mongodb/mongo/blob/4d37b895673cd4140afa8368fa4e2b1703b59f94/src/mongo/db/transaction/transaction_participant.cpp#L2508-L2511

      I think SERVER-35411 would make solving this issue easy so I am linking it, but it's possible we can provide this information in some other way without doing that ticket.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: