[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:
Depends
depends on SERVER-76855 Audit mongos for improper usage of co... Closed
Duplicate
is duplicated by SERVER-82566 Try to avoid call to cluster_aggregat... Closed
Gantt Dependency
has to be done before DOCS-16362 [SERVER] Investigate changes in SERVE... Closed
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: SERVER-80145 Remove calls to 'ChunkManager::dbPrimary()' in aggregation
Branch: master
https://github.com/mongodb/mongo/commit/9bd47d5639acb6a9853204667596bad2b723daee

Generated at Thu Feb 08 06:42:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.