-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
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
Inconsistent validation of exponential backoff #352
Comments
And since we agree that existing usage is wrong, it has to be fixed. Does this sound like a plan? |
I looked at the entire |
I think the pattern to "silently adjust" is wrong. So, if you are OK with warnings in those all setters for the current versions, then feel free to contribute. |
Hi, @artembilan ! If this is still relevant, I’d like to take this issue and work on it. Please let me know. Thanks! |
setMultiplier() in ExponentialBackoffPolicy allows a minimum multiplier of 1.0. However, the corresponding builder method in RestTemplateBuilder insists on a minimum multiplier greater than 1.0. There's even a test for it.
That's confusing. While it makes sense to require that the multiplier is greater than 1.0, aligning the setter with the builder might break existing usages.
The text was updated successfully, but these errors were encountered: