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

Fix transaction retry logic in multi_statement_transaction_all_commands.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • 0

      We can get caught in an infinite loop in the autoRetryTxn function by not incrementing the txnNumber when we receive a SnapShotError.

      One solution would be to update the exception handling to properly handle SnapshotErrors by starting a new transaction instead of continuing to run in the do-while loop.
      A better long term solution would be to use withTxnAndAutoRetry instead of autoRetryTxn in multi_statement_transaction_all_commands.

            Assignee:
            ben.gawel@mongodb.com Ben Gawel
            Reporter:
            ben.gawel@mongodb.com Ben Gawel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: