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

commitTransaction command can attach TransientTransactionError label on more errors

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • v4.0

      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)

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

              Created:
              Updated:
              Resolved: