-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
ALL
-
v6.1, v6.0
-
173
When creating an ExpressionContext within ClusterAggregate::runAggregate, we unconditionally set the inMongos field to true. We do this because, at the time this code was written, ClusterAggregate was only linked into and available on mongoS.
However, this appears to have changed as a result of SERVER-45389. After this point, ClusterAggregate is linked into mongod and is used by the PeriodicShardedIndexConsistencyChecker, which runs on the config server primary.
Since ClusterAggregate no longer exclusively runs on mongoS, we need a more robust means of setting inMongos.
We should also investigate whether ExpressionContext::fromMongos reliably reflects the execution context.
- is depended on by
-
SERVER-66295 Replace all the usages of ExpressionContext::inMongos with isMongos()
- Open
- related to
-
SERVER-66307 Set $_generateV2ResumeTokens parameter only on mongos
- Closed
-
SERVER-73832 Consider replacing the use of ClusterAggregate::runAggregate in the PeriodicShardedIndexConsistencyChecker with Pipeline::makePipeline
- Backlog
-
SERVER-66271 Consider whether ClusterAggregate::runAggregate should be available on mongoD
- Backlog