Update Shard::runFireAndForgetCommand to optionally take a callback

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Esha Maharishi (Inactive)
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: