We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backOff
Scenario:
UniformRandomBackOffPolicy is throwing IllegalArgumentException on calling backOff when maxBackOffPeriod is less than minBackOffPeriod.
Version Tested:
2.0.9
Junit to Replicate::
maxBackOff < minBackOff
@Test public void testMaxBackOffLessThanMinBackOff() { UniformRandomBackOffPolicy backOffPolicy = new UniformRandomBackOffPolicy(); int minBackOff = 1000; int maxBackOff = 10; backOffPolicy.setMinBackOffPeriod(minBackOff); backOffPolicy.setMaxBackOffPeriod(maxBackOff); UniformRandomBackOffPolicy withSleeper = backOffPolicy.withSleeper(new Sleeper() { @Override public void sleep(long backOffPeriod) throws InterruptedException { // do nothing; } }); assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> withSleeper.backOff(null)); }
Possible fix:
Following scenarios are addressed when the UniformRandomBackOffPolicy is not configured properly.
Similarly, when maxBackOff is less than minBackOff could be validated and provide some default value.
The text was updated successfully, but these errors were encountered:
Please review the following PR to fix the reported issue. Please give your comments. #465
Sorry, something went wrong.
c0a4941
No branches or pull requests
Scenario:
UniformRandomBackOffPolicy is throwing IllegalArgumentException on calling
backOff
when maxBackOffPeriod is less than minBackOffPeriod.Version Tested:
2.0.9
Junit to Replicate::
maxBackOff < minBackOff
Possible fix:
Following scenarios are addressed when the UniformRandomBackOffPolicy is not configured properly.
Similarly, when maxBackOff is less than minBackOff could be validated and provide some default value.
The text was updated successfully, but these errors were encountered: