[SERVER-49108] Convert buildInfo command to async implementation Created: 25/Jun/20  Updated: 29/Oct/23  Resolved: 09/Dec/20

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

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

Issue Links:
Depends
depends on SERVER-49107 Add async command API Closed
Problem/Incident
causes SERVER-53305 Control AsyncRequestExecutor via Cons... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2020-08-24, Service arch 2020-09-07, Service arch 2020-10-05, Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30, Service arch 2020-12-14
Participants:
Linked BF Score: 0

 Description   

buildInfo is implemented here and here. The body of both run() functions write static data into a BSONObj. This makes buildInfo uniquely simple to convert to the async Command API. We merely do the write and fulfill a promise on a background thread or an unbounded global executor. This allows us to continue onto the networking sink on thread. In a fully async context, this would have three execution contexts:

  • Source and parse on a networking reactor
  • Write and sink on a command executor
  • Clean up on the client executor


 Comments   
Comment by Githook User [ 09/Dec/20 ]

Author:

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

Message: SERVER-49108 Convert buildInfo command to async implementation
Branch: master
https://github.com/mongodb/mongo/commit/7925d3e9a759e983a49cf44b90d58f77fbf7fb95

Comment by Githook User [ 03/Nov/20 ]

Author:

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

Message: SERVER-49108 Convert buildInfo command to async implementation
Branch: fixed_thread_pool_handshaking
https://github.com/mongodb/mongo/commit/51067e095275ba5a2454be993c83a93e526e18ce

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