-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
Fully Compatible
-
CAR Team 2024-12-23, CAR Team 2025-01-06, CAR Team 2025-01-20
The $_internalListCollections has temporally been set as HostTypeRequirement::kLocalOnly to make sure it was running once on the entire cluster.
Ideally, it should have been set to HostTypeRequirement::kRunOnceAnyNode, but it didn't work as expected because:
- The pipeline data source is set to 'kNormal' here.
- As a result, we wind up targeting all shards, instead of a single shard.
This task aims to set $_internalListCollections as HostTypeRequirement::kRunOnceAnyNode and update the logic under the aggregation machinery to make sure it's only executed once.
- backported by
-
SERVER-98652 [v8.0] Backport the $listClusterCatalog aggregation stage to v8.0
- In Code Review