[SERVER-53305] Control AsyncRequestExecutor via ConstructorDestructorActions Created: 09/Dec/20  Updated: 29/Oct/23  Resolved: 09/Dec/20

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

Type: Bug 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

Issue Links:
Depends
Problem/Incident
is caused by SERVER-49108 Convert buildInfo command to async im... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service arch 2020-12-14
Participants:
Linked BF Score: 0

 Description   

The asynchronous implementations for buildinfo commands add new decorations to ServiceContext. These decorations are executors (instances of AsyncRequestExecutor that is defined here), which run buildinfo commands asynchronously.

These executors are started and shutdown during their construction and destruction, respectively. We should change this so that they are started by a ConstructorAction and , similarly, stopped by a DestructorAction. This ensures these executors are stopped as we destroy the ServiceContext.



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

Author:

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

Message: SERVER-53305 Control AsyncRequestExecutor via ConstructorDestructorActions
Branch: master
https://github.com/mongodb/mongo/commit/c8520d84cc7356d1a30858092ee79de4dd6dc163

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