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

PlanExecutorImpl cached collection scan stage to use later before multiplanning

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • QE 2022-11-28
    • 35

    Description

      PlanExecutorImpl caches collection scan before multiplanning:
      https://github.com/mongodb/mongo/blob/7981ec64d28c49dd2f41d466f7b6bfaccad66fa9/src/mongo/db/query/plan_executor_impl.cpp#L142

      And uses it to get some execution-dependent values here:
      https://github.com/mongodb/mongo/blob/7981ec64d28c49dd2f41d466f7b6bfaccad66fa9/src/mongo/db/query/plan_executor_impl.cpp#L661

      This is wrong, because if multiplanner rejects collscan, values there will be obsolete.

      Attachments

        Activity

          People

            ivan.fefer@mongodb.com Ivan Fefer
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: