PlanExecutor::getNext() is returning unowned BSON objects

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: