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

Convert buildInfo command to async implementation

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2020-08-24, Service arch 2020-09-07, Service arch 2020-10-05, Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30, Service arch 2020-12-14
    • 0

      buildInfo is implemented here and here. The body of both run() functions write static data into a BSONObj. This makes buildInfo uniquely simple to convert to the async Command API. We merely do the write and fulfill a promise on a background thread or an unbounded global executor. This allows us to continue onto the networking sink on thread. In a fully async context, this would have three execution contexts:

      • Source and parse on a networking reactor
      • Write and sink on a command executor
      • Clean up on the client executor

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: