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

auto_retry_transaction.js does not retry during commit

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL
    • 118

    Description

      on certain types of error. It currently retries on interrupt type errors:

      https://github.com/mongodb/mongo/blob/a144ad58c9781602e99941fe627eceed8e7bc8bb/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js#L71

      and gives up when error doesn't have the transient transaction error label:

      https://github.com/mongodb/mongo/blob/a144ad58c9781602e99941fe627eceed8e7bc8bb/jstests/concurrency/fsm_workload_helpers/auto_retry_transaction.js#L41

      The code comment appears to contradict with the specs:

      Any network error encountered running any command other than commitTransaction in a transaction. If a network error occurs while running the commitTransaction command then it is not known whether the transaction committed or not, and thus the "TransientTransactionError" label MUST NOT be added.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: