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

cleanupOnLastIteration() should tolerate an interruption for multi_statement_transaction_all_commands.js

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2018-10-22
    • Linked BF Score:
      11

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: