SERVER-134485ClosedFixed

QueuedAdmissionWithLargeMaxTimeMSSucceeds may start sleeping after mock clock is advanced, causing a hang

In SERVER-132777, we replaced the logic that checked to see if opCtx was currently waiting for interrupt with the more specific check on the AdmissionContext. However, this introduced a separate race, since the advancer thread may wake up before the request thread has actually computed its napTime in the RateLimiter. As a result, the request may compute a napTime with a deadline that is after the clock has been advanced, causing it to hang forever. To fix this, we should reintroduce the check

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10249.0.7
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.