[SERVER-39843] Allow findAndModify to change the shard key value if retryable write when the doc will move shards Created: 26/Feb/19  Updated: 29/Oct/23  Resolved: 22/Apr/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.1.11

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

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-04-22
Participants:

 Description   

If the findAndModify is a retryable write and we get a WCOS error, start a transaction an re-run the original findAndModify using the logic implemented in SERVER-39841.



 Comments   
Comment by Githook User [ 22/Apr/19 ]

Author:

{'name': 'jannaerin', 'username': 'jannaerin', 'email': 'golden.janna@gmail.com'}

Message: SERVER-39843 Fix lint
Branch: master
https://github.com/mongodb/mongo/commit/b10765d357743ed050c886be582f63fc9d2d08d8

Comment by Githook User [ 22/Apr/19 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-39843 Allow findAndModify to change the shard key value when sent as retryable write
Branch: master
https://github.com/mongodb/mongo/commit/dc392f3d00692327f488f07dea1bba247d56a580

Generated at Thu Feb 08 04:53:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.