In the event that stopAcceptingSessions is invoked after the asio listener thread has started but before it has actually begun listening, stopAcceptingSessions will block forever while trying to join the listener thread. This is because the listener thread's state only transitions to kShuttingDown if its prior state was kActive, not also kNew.
This situation is pretty rare. An example trigger would be killing a new mongos/d process very quickly after starting it up.
- causes
-
SERVER-86694 Server can crash if started and then immediately shut down
- Closed