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

Ensure parsed IDL types own or preserve the lifetime of their data

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2022-08-08, Service Arch 2022-10-03
    • 135

      Some IDL types contain fields that are of type BSONObj. When we parse these types from BSON, those fields are references into the BSON we are parsing from, which can become a problem if the parsed IDL type outlives the BSON we are parsing from. The IDL has an "object owned" type to indicate that the parsed fields must own the underlying data, but not all IDL command reply types use this today.We need to investigate a solution, possibly but not necessarily involving converting reply types to use object_owned, to ensure that parsed reply types own their own data/can safely outlive the BSON they were parsed from.

            Assignee:
            george.wangensteen@mongodb.com George Wangensteen
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: