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

unowned filter BSONObj stored in PlanCache entry debugInfo

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.3, 5.1.0-rc0
    • 5.1.0, 5.0.2
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • QO 2021-08-23
    • 148

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: