Details
-
Task
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
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.