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

commitTransaction command can attach TransientTransactionError label on more errors

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Replication
    • v4.0

    Description

      Currently the commitTransaction command only gets the TransientTransactionError label on a smaller set of error codes than most other commands within transactions (see https://github.com/mongodb/mongo/blob/8956deeef7bd4013d3de4092374fb9a2c329e2a5/src/mongo/db/handle_request_response.cpp#L49).

      There's no reason for this, however. commitTransaction should be able to get the TransientTransactionError on all the same codes as every other transaction command, with the one exception of NoSuchTransaction in the case of a writeConcern error (see SERVER-37179)

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: