[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: |
|
||||||||||||
| 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: |