[SERVER-70581] Handle WCOS for update and findAndModify if replacement document changes data placement Created: 14/Oct/22  Updated: 29/Oct/23  Resolved: 16/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Jason Zhang Assignee: Jason Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-70946 Make findAndModify without shard key ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2023-01-09, Sharding NYC 2023-02-06, Sharding NYC 2023-02-20
Participants:

 Description   

If an updateOne (or findAndModify) has a replacement style update which changes the shard which should own the document, the shard which received the initial update will throw WCOS and we should handle the error accordingly.



 Comments   
Comment by Githook User [ 15/Feb/23 ]

Author:

{'name': 'Jason Zhang', 'email': 'jason.zhang@mongodb.com', 'username': 'jz1242'}

Message: SERVER-70581 Handle WCOS for update and findAndModify if replacement document changes data placement
Branch: master
https://github.com/mongodb/mongo/commit/77c03f9e26931596059122c251bf875c190123e3

Generated at Thu Feb 08 06:16:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.