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

txn_override.js should make sure failing assert.commandWorked() terminates the test during collection creation

    • Replication
    • ALL

      In txn_override.js, if an insert attempts to do implicit collection creation inside a transaction, we will abort the transaction, create the collection outside of a transaction, and retry the transaction. If the collection creation fails this assert.commandWorked(), it does not necessarily terminate the test because the error could be caught in auto_retry_on_network_error.js and cause the transaction to be retried.

      This is a problem because rather than failing loudly for an error we did not expect, we are suppressing the error by retrying the transaction.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: