-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
v5.0
-
Service Arch 2021-06-14
-
124
-
3
Some of the tests in ServiceStateMachineTest schedule tasks on ServiceExecutorFixed (e.g., ServiceStateMachineWithBorrowedThreadsTest). This is to run the tasks scheduled by ServiceStateMachine on the fixed thread-pool (see here).
Since we don't currently wait for the fixed thread-pool to join before destroying the ServiceStateMachineTest test-fixture (see here), there's a possibility to destroy the service context before destroying all clients, thus hitting this invariant invariant(_clients.empty());.
Acceptance criteria: retire all tasks on fixed thread-pool before calling the destructor for ServiceStateMachineTest.
- related to
-
SERVER-57427 Avoid special-case handling in ServiceEntryPointImpl::shutdown
- Closed
-
SERVER-57445 Make join() a private member of ServiceExecutorFixed
- Closed