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

PlanExecutorImpl may skip documents returned by PlanStage tree

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • QE 2022-07-11

    Description

      In PlanExecutorImpl::getNext(), a result is skipped if the caller requests a record ID but none is provided on the WSM produced by the PlanStage tree.

      This can result in some very confusing behavior for internal users of PlanExecutor, where documents are filtered out at the PlanExecutor layer. We should consider changing the behavior in this case to tassert() or log an error message instead of simply filtering out the document. If a caller is expecting a RecordID and the plan is not producing RecordIds, it indicates an issue in the way the plan was constructed.

      This issue has no known external impact.

      Attachments

        Activity

          People

            naomie.gao@mongodb.com Naomie Gao (Inactive)
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: