-
Notifications
You must be signed in to change notification settings - Fork 531
Inconsistent validation of exponential backoff #352
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
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! |
Hi, I'd like to work on this issue. I understand the problem:
As mentioned in the discussion, I'll implement warnings for invalid values in setters for the current version. The approach would be:
May I proceed with this implementation? |
- Add warning logs when setter values don't meet expected constraints - Maintain backward compatibility by not changing behavior Fixes spring-projects#352 Signed-off-by: kssumin <[email protected]>
- Add warning logs when setter values don't meet expected constraints - Maintain backward compatibility by not changing behavior Fixes spring-projects#352 Signed-off-by: kssumin <[email protected]>
- Add warning logs when setter values don't meet expected constraints - Maintain backward compatibility by not changing behavior Fixes spring-projects#352 Signed-off-by: kssumin <[email protected]>
- Add warning logs when setter values don't meet expected constraints - Maintain backward compatibility by not changing behavior Fixes spring-projects#352 Signed-off-by: kssumin <[email protected]>
- Add warning logs when setter values don't meet expected constraints - Maintain backward compatibility by not changing behavior Fixes spring-projects#352 Signed-off-by: kssumin <[email protected]>
- Add warning logs when setter values don't meet expected constraints - Maintain backward compatibility by not changing behavior Fixes spring-projects#352 Signed-off-by: Kim Sumin <[email protected]>
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: