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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Replication
    • ALL
    • v7.3
    • Repl 2024-02-19
    • 15

    Description

      If an update that modifies a document's shard key is converted from a retryable write to an internal 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.

      Attachments

        Activity

          People

            frederic.vitzikam@mongodb.com Frederic Vitzikam
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: