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

XMLWordPrintableJSON

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

      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.

              Assignee:
              Judah Schvimer
              Reporter:
              Samyukta Lanka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: