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

PlanExecutor::getNext() is returning unowned BSON objects

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution
    • 160

    Description

      The changes introduced by SERVER-82970 exposed the fact that the PlanExecutor::getNext() (or at least, the implementation defined by PlanExecutorImpl) is returning unowned BSONObject to its callers, which may experience segmentation fault error in case the executor object gets destroyed before accessing such objects.

      This ticket proposes to either implement a more robust behaviour - or to make the limitation explicit through the documentation of the interface.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: