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

txn_override.js should not rerun every operation in the ops buffer after collection creation

    • 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
    • 7

      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 rerun all operations in the transaction.

      On a network error, we retry the entire transaction that was running by rerunning all buffered operations. If, while retrying a transaction, an implicit collection creation happens, then we will re-run all the operations after the operation that caused the implicit collection creation twice.

      Instead of rerunning all operations after creating the collection, we should only rerun all operations that happened before (and including) the operation that caused the implicit collection creation.

            judah.schvimer@mongodb.com Judah Schvimer
            samy.lanka@mongodb.com Samyukta Lanka
            0 Vote for this issue
            4 Start watching this issue