Skip to content

TestLinearBackoffManager: Re-enable probeUpdatesRemainingAttemptsIndirectly - #909

Merged
ok2c merged 1 commit into
apache:masterfrom
sharanggupta:linear-backoff-probe-test
Oct 28, 2026
Merged

ok2c merged 1 commit into
apache:masterfrom
sharanggupta:linear-backoff-probe-test

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

probeUpdatesRemainingAttemptsIndirectly lost its @test in #494 and has not run since. #494 replaced Thread.sleep() with ageing lastRouteProbes, but the sleep also aged the last backoff, so the second probe is now skipped and the test fails (expected 5, was 6). This restores @test and ages lastRouteBackoffs as well.

…rectly

The test lost its @test annotation in apache#494, when the Thread.sleep() calls were
replaced, and has not run since. As rewritten it also could not pass: the
second probe was still inside the cool-down period started by the preceding
backOff, so the pool size stayed at 6. Age the last backoff together with the
last probe before the second probe.
@ok2c
ok2c merged commit 4cdc1d3 into apache:master Oct 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants