[SERVER-51690] Add support for async command execution to Mongos Created: 16/Oct/20  Updated: 29/Oct/23  Resolved: 24/Nov/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30
Participants:

 Description   

The command execution path for Mongos starts from here, and ends in the invocation of CommandHelpers::runCommandInvocation (here and here).

To add support for asynchronous command execution, this path should replace inline executions with returning futures that can be scheduled on an executor.

Next, invocations of CommandHelpers::runCommandInvocation should be replaced with CommandHelpers::runCommandInvocationAsync to allow utilizing async implementations of commands, when available.



 Comments   
Comment by Githook User [ 24/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-51690 Add support for async command execution to Mongos
Branch: master
https://github.com/mongodb/mongo/commit/40c3bac93c2091cea665de686cae93ef90429775

Comment by Githook User [ 18/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-51690 Futurize and refactor Mongos execCommandClient
Branch: fixed_thread_pool_handshaking
https://github.com/mongodb/mongo/commit/63338e0dd6aab76382ddc1034d0b6b2a885f06ad

Comment by Githook User [ 17/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-51690 Futurize Mongos runCommand for async command execution
Branch: fixed_thread_pool_handshaking
https://github.com/mongodb/mongo/commit/13bb35d34dc20273d342e52360b89e6f510d1747

Comment by Githook User [ 05/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-51690 Futurize clientCommand to support async command execution
Branch: fixed_thread_pool_handshaking
https://github.com/mongodb/mongo/commit/f4373b85f0f394c485cbff447312c567924ba5e3

Comment by Githook User [ 02/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-51690 Futurize Mongos handleRequest for async command execution
Branch: fixed_thread_pool_handshaking
https://github.com/mongodb/mongo/commit/9262aac9e7db4b58739e96896b1ed586dfd6d3a9

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