[SERVER-80145] Avoid explicit callers of ChunkManager::dbPrimary() when doing shard targeting in agg code Created: 16/Aug/23 Updated: 21/Nov/23 Resolved: 03/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mihai Andrei | Assignee: | Mihai Andrei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Assigned Teams: |
Query Execution
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | QE 2023-10-16, QE 2023-10-30, QE 2023-11-13 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 105 | ||||||||||||||||||||||||
| Description |
|
Fix getTargetedShardsForQuery() to route using the routing table whenever it is available Caller related to determining whether to split the pipeline should be handled when we get rid of the kPrimaryShard host type requirement Callers in establishShardCursors() Calculating the nShards statistic Agg code which is contacting the primary shard over the wire in order to get the UUID and collation associated with an unsharded collection. Note that some of these callers MAY need to stick around until after we cut a branch for 8.0 as we may still need to rely on the notion of db primary in some cases if the FCV is NOT 8.0. |
| Comments |
| Comment by Githook User [ 02/Nov/23 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@mongodb.com', 'username': 'mtandrei'}Message: |