If write isn't in multi-stmt txn mongos should start internal transaction and run the original update command

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2019-03-25
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-39835 creates logic to run a delete-insert transaction from mongos upon receiving WouldChangeOwningShard. If the original write command is not part of a multi-stmt transaction, instead of creating and running delete and insert command objects we will instead start a transaction and run the original write command. This command should use the original query predicate and updates attached to the WCOS as its query and update fields. Once this returns successfully, commit this transaction.

            Assignee:
            Janna Golden
            Reporter:
            Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: