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

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

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

      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@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: