Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43102

Don't add DocumentSourceSequentialDocumentCache to lookup pipelines when disablePipelineOptimization failpoint is enabled

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 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. 

            Assignee:
            arun.banala@mongodb.com Arun Banala
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: