[SERVER-39837] Allow findAndModify to change the shard key value if run as part of a multi-stmt txn Created: 26/Feb/19  Updated: 29/Oct/23  Resolved: 20/Mar/19

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

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-03-25
Participants:

 Description   

In FindAndModifyCmd on MongoS, we need to catch the WCOS error and run the delete-insert transaction logic created as part of SERVER-39835. If the findAndModify is not part of a multi-stmt txn, we will error.



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

Author:

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

Message: SERVER-39837 Fix document_shard_key_update_test unit test
Branch: master
https://github.com/mongodb/mongo/commit/86dbecd63275678e08e42765278394f562c81207

Comment by Githook User [ 20/Mar/19 ]

Author:

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

Message: SERVER-39837 Allow findAndModify to update the shard key value when run in transaction
Branch: master
https://github.com/mongodb/mongo/commit/869b713681f5832e687fe213084e6170ebef60c4

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