[SERVER-37705] Update Shard::runFireAndForgetCommand to optionally take a callback Created: 22/Oct/18  Updated: 27/Oct/23  Resolved: 01/Nov/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Esha Maharishi (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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.



 Comments   
Comment by Esha Maharishi (Inactive) [ 01/Nov/18 ]

Switched to RPC commit protocol.

Generated at Thu Feb 08 04:46:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.