[SERVER-40765] Add support for future returning rpc on task executor Created: 22/Apr/19  Updated: 08/Jan/24  Resolved: 22/Nov/19

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

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Backlog - Service Architecture
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-40951 Add support for LazyConvertible<T> Closed
Related
is related to SERVER-40794 TaskExecutor should support creating ... Open
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Service Arch 2019-04-22, Service Arch 2019-05-06, Service Arch 2019-05-20, Service Arch 2019-06-03
Participants:

 Description   

Add support for some kind of future returning scheduleRemoteCommand on task executor (the simplest cut would be pair<SemiFuture<Response>, CallbackHandle>)

This is to enable use of task executors with futures, as currently you're required to make the promise/future pair yourself, and have to pass your promise in through a shared_ptr (because callbacks have to be copyable)



 Comments   
Comment by Benjamin Caimano (Inactive) [ 22/Nov/19 ]

This ticket is too stale to be a viable tracker for future work. We do not have future returning scheduleRemoteCommand at the moment. That said, we do have SERVER-40794 queued up for the future, and it is an ideal place to handle this sort of work.

Comment by Gregory McKeon (Inactive) [ 13/May/19 ]

jesse is there more work to do here?

Comment by Githook User [ 04/May/19 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: SERVER-40765 TaskExecutor inherits from OutOfLineExecutor
Branch: master
https://github.com/mongodb/mongo/commit/30f602bb9c8799e9b2b0d1c608d13fdfb24d2ce2

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