SERVER-118451ClosedFixed

ConcurrentTokenAcquisitionWithQueueing unit test assertions are too restrictive

The ConcurrentTokenAcquisitionWithQueueing involves queueing a few threads waiting for a token, advancing the mocked clock by the time it takes to acquire a token, and verifying that a token is dispensed after each advance. This doesn't quite match the implementation of the underlying token bucket though, which isn't fully synchronized. Queuing is implemented by "borrowing" tokens that don't exist in the token and returning a "nap time" that the borrower has to sleep in order for the borrow

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

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

No components specified.

Labels
Tags and classification

No labels assigned.