[SERVER-49879] Fix ServiceExecutorFixed lifetime in death-tests Created: 24/Jul/20 Updated: 29/Oct/23 Resolved: 30/Jul/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.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-08-10 | ||||
| Participants: | |||||
| Linked BF Score: | 0 | ||||
| Description |
|
The DestructorFailsBeforeShutdown unit-test verifies that instances of ServiceExecutorFixed will abort the process if destroyed before shutdown. The current implementation of the test does not bind the lifetime of the executor to the test function, causing sporadic failures. We should have the test function (defined here) own the only instance of the executor, thus leaving the function would trigger the destructor for ServiceExecutorFixed. |
| Comments |
| Comment by Githook User [ 30/Jul/20 ] |
|
Author: {'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}Message: |