Return write error on failure to commit txn for retryable update that modifies doc shard key

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.3.1, 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v7.3
    • Repl 2024-02-19, Repl 2024-03-04, Repl 2024-03-18, Repl 2024-04-01
    • 6
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If an update that modifies a document's shard key is converted from a retryable write to a transaction, and that transaction errors, we intercept the error message as to avoid returning a transaction error to the client (which would be confusing as they issued a retryable write). In a recent refactor, we accidentally began unsetting the write error from the response after catching and rewriting the error, so we end up returning an ok status to the client rather than the rewritten error.

            Assignee:
            Kaitlin Mahar
            Reporter:
            Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: