[SERVER-46755] Add ShardInvalidatedForTargeting to list of transient transaction errors in update shard key concurrency test Created: 10/Mar/20  Updated: 29/Oct/23  Resolved: 12/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: Blake Oler Assignee: Blake Oler
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding 2020-03-23
Participants:
Linked BF Score: 17

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

Author:

{'name': 'Blake Oler', 'username': 'BlakeIsBlake', 'email': 'blake.oler@mongodb.com'}

Message: SERVER-46755 Add ShardInvalidatedForTargeting to list of transient transaction errors in update shard key concurrency test

(cherry picked from commit 5668cdaad543ff9b79cffe97a451cb3018ad42b9)
Branch: v4.4
https://github.com/mongodb/mongo/commit/ccaf5f953aea3a8caa25ceb2035ee028552c1c3b

Comment by Blake Oler [ 11/Mar/20 ]

kaloian.manassiev this code gets bubbled up to the client when a transaction can't retry due to a change in cluster data placement. This is a known issue that already exists with StaleShardVersion, and will be solved with PM-1630. The ShardInvalidatedForTargeting error is labeled as a transient transaction error, and will in the current state of the world be automatically retried by drivers. The stakeholders for PM-1633 and the Product Team (specifically garaudy.etienne) are aware of and okay with this behavior for the time being.

Comment by Kaloian Manassiev [ 11/Mar/20 ]

blake.oler, does this code ever get returned to the client? If it does, this seems wrong to me, because ShardInvalidatedForTargeting should be something entirely internal between MongoS and MongoD. If it does get returned to the client, do you mind explaining here in a comment under what conditions it would happen?

Comment by Githook User [ 10/Mar/20 ]

Author:

{'name': 'Blake Oler', 'username': 'BlakeIsBlake', 'email': 'blake.oler@mongodb.com'}

Message: SERVER-46755 Add ShardInvalidatedForTargeting to list of transient transaction errors in update shard key concurrency test
Branch: master
https://github.com/mongodb/mongo/commit/5668cdaad543ff9b79cffe97a451cb3018ad42b9

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