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

auto_retry_transaction.js does not retry during commit

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • ALL
    • 118

      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.

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

              Created:
              Updated: