[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: |
|
||||||||||||
| 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: |