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

PlanExecutor::getNext() is returning unowned BSON objects

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • 160

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: