[SERVER-46505] Add back requirement that full shard key must be in query to update a shard key value Created: 28/Feb/20  Updated: 29/Oct/23  Resolved: 17/Mar/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: sharding-4.4-stabilization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-13519 Investigate changes in SERVER-46505: ... Closed
Related
is related to SERVER-39158 Change updates to prefer target by th... Closed
is related to SERVER-42390 Allow documents in a sharded collecti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding 2020-03-23
Participants:

 Description   

SERVER-39158 added the requirement that to update the value of a document's shard key, the update's query must include an equality match on the full shard key. SERVER-42390 changed the treatment of missing shard key fields when targeting based on a user document (e.g. a replacement document in an update) but incorrectly removed the restriction that the full shard key must be present in a query to update a shard key value. This requirement should be added back.



 Comments   
Comment by Githook User [ 30/Mar/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-46505 Restore requirement that full shard key must be in query to update shard key value

(cherry picked from commit d98886efd15f146dad8c217db90e8cb4b2c0e851)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a8d46cd17dca6422189395c1d005867af10d34e7

Comment by Githook User [ 17/Mar/20 ]

Author:

{'name': 'Jack Mulrow', 'username': 'jsmulrow', 'email': 'jack.mulrow@mongodb.com'}

Message: SERVER-46505 Restore requirement that full shard key must be in query to update shard key value
Branch: master
https://github.com/mongodb/mongo/commit/d98886efd15f146dad8c217db90e8cb4b2c0e851

Generated at Thu Feb 08 05:11:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.