Can TypedCommand parse request in owned manner?

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Sandeep Dhoot (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: