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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • None
    • ALL
    • 7

    Description

      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. 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: