[fix][test] Fix flaky PublishRateLimiterOverconsumingTest#26007
[fix][test] Fix flaky PublishRateLimiterOverconsumingTest#26007BewareMyPower wants to merge 2 commits into
Conversation
…teLimiterOverconsumingTest The per-second window check with 1.5x tolerance was flaky due to GC pauses and thread scheduling variance in producer-side synchronous sends. Switch to 2-second sliding window averages at 1.55x tolerance to smooth out transient spikes while still catching intermittent overconsumption.
|
The flakiness could have been introduced by Netty 4.2 migration. Checking into this too since it could also be a production code issue. |
|
#26013 fixes the actual root cause which is a regression in Netty. I agree that the test can be improved since there are some flaws. Some of the behavior is intentional such as testing batch messages. One of the main changes in this PR is that it replaces |
fixes #26006