The stop method for PeriodicRunner waits for the runner thread to return here. This could indefinitely block the thread that called stop() if the runner thread is running a job here that never returns.
For instance, the periodic refresh for LSC could be waiting here when the signal handler thread attempts to stop its job here, which makes the mongod process hang during shutdown.
- is related to
-
SERVER-41584 Deadlock shutting down the PeriodicRunner while the LogicalSessionCache is refreshing
- Closed
-
SERVER-44279 Make LogicalSessionCache synchronize with system shutdown
- Closed
- related to
-
SERVER-41584 Deadlock shutting down the PeriodicRunner while the LogicalSessionCache is refreshing
- Closed