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

Can TypedCommand parse request in owned manner?

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Service Arch
    • ALL

    Description

      When I use TypedCommand, any BSONObjs in my request struct are not parsed in owned manner (e.g. here). This means that I cannot hold onto these objects after the command finishes running. I need to explicitly call `getOwned` on these objects to make them outlive command execution. While I can do this, this is brittle, I need to make sure to do this for all BSONObjs in all my request structs. It'd be great if TypedCommand instead parsed the incoming BSONObjs in owned manner.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            sandeep.dhoot@mongodb.com Sandeep Dhoot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: