unowned filter BSONObj stored in PlanCache entry debugInfo

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              James Wahlin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: