[SERVER-39842] Allow update to shard key value if retryable write when doc will move shards Created: 26/Feb/19  Updated: 29/Oct/23  Resolved: 09/Apr/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-04-08, Sharding 2019-04-22
Participants:

 Description   

In BatchWriteExec::executeBatch, we should begin tracking WouldChangeOwningShard errors. If a write is retryable and we have tracked WCOS errors, run the transaction logic implemented in SERVER-39841. If this transaction commits successfully, clear the errors.



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

Author:

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

Message: SERVER-39842 Allow update to shard key value if retryable write
Branch: master
https://github.com/mongodb/mongo/commit/3e7d0821ad83fb29b25ced2b6cf9db313b19ce9b

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