-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
v5.0
-
Sharding 2021-06-14
-
1
DocumentSourceLookUp::buildPipeline() calls ShardServerProcessInterface::attachCursorSourceToPipeline() which calls sharded_agg_helpers::attachCursorToPipeline() and always serializes and re-parses, even when the pipeline may execute locally on the shard via ShardServerProcessInterface::attachCursorSourceToPipelineForLocalRead().
Because the $sequentialCache stage omits itself from the serialized pipeline, the parsed pipeline which executes locally on the shard won't ever use the cache.
- is caused by
-
SERVER-45538 Implement and test shard version retry logic for $unionWith sub-pipeline
- Closed
- is related to
-
SERVER-57168 pipeline->clone() breaks on pipelines with union stage
- Closed
-
SERVER-30399 Add caching for $lookup non-correlated sub-pipeline prefix
- Closed
-
SERVER-57668 Cache chunk bounds as an array in resharding collection cloning pipeline
- Closed
- related to
-
SERVER-57579 DocumentSourceSequentialCache doesn't clone, ruining non-correlated $lookup pipeline caching in sharded deployments
- Closed
-
SERVER-57667 Improve processing speed for resharding's collection cloning pipeline
- Closed