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

    • ALL
    • Repl 2019-01-28, Repl 2019-02-11, Repl 2019-02-25, Repl 2019-03-11, Repl 2019-03-25, Repl 2019-04-08

      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.

            Assignee:
            judah.schvimer@mongodb.com Judah Schvimer
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: