Attach TransientTransactionError label to transient targeting errors for unordered writes in transactions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v9.0
    • CAR Team 2026-08-03
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a write command with ordered: false runs inside a multi-document transaction and the router fails to target one of its operations with a transient error, mongos returns the failure as a per-operation write error in an ok: 1 reply, with no errorLabels field.

      Because the TransientTransactionError label is missing, neither drivers nor the shell's retry helpers recognize the failure as retryable, so a benign and self-healing race is surfaced to the application as a permanent write failure.

      The equivalent ordered: true command does not have this problem: it fails the whole command and the reply is labelled TransientTransactionError as expected.

            Assignee:
            Wolfee Farkas
            Reporter:
            Wolfee Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: