SERVER-122126ClosedFixed

Fix race in InitialSyncerTransitionsToCompleteWhenFinishCallbackThrowsException

The test hangs because {{shutdown()}} causes {{_finishCallback}} to be scheduled on {{{}_exec->scheduleWork(){}}}, which enqueues a task into the {{{}ThreadPoolMock{}}}. But the mock's single worker thread is blocked in {{NetworkInterfaceMock::waitForWork()}} and nobody signals it to wake up. The task sits in the queue forever, so {{_finishCallback}} never runs and the failpoint is never hit. The sibling test ({{{}InitialSyncerResetsOnCompletionCallbackFunctionPointerUponCompletion{}}}) handl

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.0.0-rc08.3.16
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.