[SERVER-44951] Expand TaskExecutor to implement scheduleExhaustRemoteCommand() Created: 04/Dec/19  Updated: 29/Oct/23  Resolved: 24/Feb/20

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-45109 Modify AsyncDBClient to allow exhaust... Closed
depends on SERVER-45114 Connect AsyncDBClient exhaust functio... Closed
is depended on by SERVER-44954 Use tailable awaitable isMaster Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-02-10, Sharding 2020-02-24
Participants:

 Description   

Tailable cursors are not directly supported by the TaskExecutor interface or the NetworkInterface. We should add a new version of scheduleRemoteCommand() that issues getMore commands and calls its callback each time it gets more response data. For an example of query exhaust, see here. Ideally, after this work, we would be able to phrase a similar integration test using ThreadPoolTaskExecutor::scheduleExhaustRemoteCommand().



 Comments   
Comment by Githook User [ 22/Feb/20 ]

Author:

{'name': 'Janna Golden', 'username': 'jannaerin', 'email': 'janna.golden@mongodb.com'}

Message: SERVER-44951 Expand TaskExecutor to implement exhaust functionality
Branch: master
https://github.com/mongodb/mongo/commit/b2d5432fdceaab0589fe6ca4eda24564515d58f9

Generated at Thu Feb 08 05:07:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.