[SERVER-52629] Apply lookup by ShardId first in non config shards Created: 05/Nov/20  Updated: 29/Oct/23  Resolved: 12/Nov/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0-alpha0

Type: Improvement Priority: Major - P3
Reporter: Jaume Moragues (Inactive) Assignee: Jaume Moragues (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-46202 Implement ShardRegistry on top of Rea... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-11-16
Participants:
Linked BF Score: 0

 Description   

When Looking for shards cached in ShardRegistry, first apply lookup into non config cached shards, and, only if there is no shard with such ShardId, apply lookup into config shard. Doing this we will take benefit from the fact that _getData method only blocks when any shard structure change has occurred, while for looking for config shards we have to acquire a local mutex in any case.



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

Author:

{'name': 'Jaume Moragues', 'email': 'jaume.moragues@mongodb.com'}

Message: SERVER-52629 Apply lookup by ShardId first in non config shards
Branch: master
https://github.com/mongodb/mongo/commit/916c466afac10d34e61b6ca42a12e35d7c4828f1

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