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

Throw WouldChangeOwningShard exception if write will cause document to change shards

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.9
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2019-02-25, Sharding 2019-03-11

    Description

      Before applying the post-image, the update node should check whether this node owns the chunk that the shard key in the post-image belongs to. If it does not own this chunk, it should throw WouldChangeOwningShard. If the write is in a multi-statement transaction, it should attach the original query predicate and post-image. If it is not, it should attach the original query predicate and update fields.

      Attachments

        Activity

          People

            janna.golden@mongodb.com Janna Golden
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: