SERVER-132784ClosedFixed

ConcurrentTokenAcquisitionWithQueueing waits on queued() but asserts on addedToQueue

The test waits for `rateLimiter.queued() == 8` (line 643), which is incremented inside `enqueue()`. But `addedToQueue()` stat is recorded on line 356 after `enqueue()` returns. So all 8 threads can be "in the queue" yet one or more haven't incremented the stat yet, causing the test to fail.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.