-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Labels:None
-
ALL
-
7
In order to cache the non-correlated pipeline prefix of a $lookup pipeline, DocumentSourceLookup adds a DocumentSourceSequentialDocumentCache to the end of the foreign pipeline and then relies on pipeline optimization to position the cache directly. When the disablePipelineOptimization failpoint is set, Pipeline::optimizePipeline() will exit early and correct placement of the cache will not occur. This will cause the entire foreign pipeline to be cached and will lead to incorrect results when pipeline correlation exists.