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

cleanupOnLastIteration() should tolerate an interruption for multi_statement_transaction_all_commands.js

    • Fully Compatible
    • ALL
    • Sharding 2018-10-22
    • 11

      cleanupOnLastIteration() is used in both snapshot_read_kill_operations and multi_statement_transaction_all_commands.js. It should tolerate an abort errorCode of `interrupted` for snapshot_read_kill_operations.js only, so we should change cleanupOnLastIteration() to take abortErrorCodes as a parameter. Then, we can pass `[ErrorCodes.NoSuchTransaction, ErrorCodes.TransactionCommitted, ErrorCodes.TransactionTooOld]` for multi_statement_transaction_all_commands.js, and also add `ErrorCodes.Interrupted` for snapshot_read_kill_operations.js.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: