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

Update Shard::runFireAndForgetCommand to optionally take a callback

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None

    Description

      Shard::runFireAndForgetCommand is a light wrapper around TaskExecutor::scheduleRemoteCommand whose main benefit is that the wrapper includes the logic to target a specific host within a remote shard.

      However, one current drawback is that Shard::runFireAndForgetCommand does not take a callback, while TaskExecutor::scheduleRemoteCommand does (Shard::runFireAndForgetCommand always passes a no-op callback to TaskExecutor::scheduleRemoteCommand).

      This ticket is to rename Shard::runFireAndForgetCommand to Shard::runCommandWithCallback and make it take a callback that it passes down to TaskExecutor::scheduleRemoteCommand.

      This will make it easier for a router to process prepare responses from transaction participants and send voteAbort on the participants' behalf if necessary.

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: