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

txn_override.js shouldn't have a write concern when creating a collection outside of a transaction

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Sprint:
      Repl 2019-01-28, Repl 2019-02-11, Repl 2019-02-25, Repl 2019-03-11, Repl 2019-03-25, Repl 2019-04-08

      Description

      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 with a write concern error, it will fail here and we'll then retry the create collection. This can cause an error because it means we could retry the collection creation even though it already succeeded the first time.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: