[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:
Depends
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: SERVER-49879 Fix ServiceExecutorFixed lifetime in death-tests
Branch: master
https://github.com/mongodb/mongo/commit/8d14d3a7f10a55acb09cd460157ebe005ca7ae4d

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