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

unowned filter BSONObj stored in PlanCache entry debugInfo

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.3, 5.1.0-rc0
    • Affects Version/s: 5.1.0, 5.0.2
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • QO 2021-08-23
    • 148

      The PlanCache currently stores BSONObj owned by the FindCommandRequest in debugInfo entries. In the case that the FindCommandRequest was built Once cached, these entries can outlive the original request and the debugInfo filter and sort will point to unowned memory. Both should be made owned as part of populating the debugInfo.

      This only exists in 5.0 and master only as it was introduced recently with a change to use IDL to parse the find command.

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: