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
-
- Closed
-
- related to
-
SERVER-103962 Make a DocumentSource which supports an iterator concept
-
- Backlog
-