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.
- related to
-
SERVER-46811 multi=true updates can modify the shard key of orphan documents and cause them to become owned
- Closed