Throw WouldChangeOwningShard exception if write will cause document to change shards

XMLWordPrintableJSON

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

      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.

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

              Created:
              Updated:
              Resolved: