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

Add async command API

    • 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-07-13, Service Arch 2020-07-27, Service Arch 2020-08-10, 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
    • 0

      For certain Command implementations, notably awaitable isMaster, there is the potential to join an asynchronous queue. We should add some new functions to the Command* API. To allow for asynchronous functions to activate hooks, we need a new helper ala CommandHelpers::runCommand() and a new version of CommandInvocation::run(). The async CommandInvocation::run() should default to running the sync implementation on some persistent executor. There is some real work here in terms of designing a reliable API.

      This ticket also involves attaching this API to the command path.

            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: