Skip to content
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

EnableRetry is enabled un-conditionally #766

Open
wind57 opened this issue Jan 29, 2022 · 3 comments
Open

EnableRetry is enabled un-conditionally #766

wind57 opened this issue Jan 29, 2022 · 3 comments
Labels

Comments

@wind57
Copy link

wind57 commented Jan 29, 2022

We have this report of a bug in spring cloud kubernetes here. The underlying issue is that if spring consul is on the classpath, it automatically enable spring-retry, as seen in this configuration.

That class has @ConditionalOnProperty(value = "spring.cloud.consul.retry.enabled", matchIfMissing = true), but the problem is in matchIfMissing = true.

To give some details: for example someone has both consul and kubernetes dependencies on the classpath. Because consul enables spring retry un-conditonally, it means it is enabled in kubernetes also - though users might not want that. The linked issue has all the needed details. To me, matchIfMissing = true should be dropped.

wdyt?

@spencergibb
Copy link
Member

Unfortunately, this didn't make it into a major release for breaking changes.

@spencergibb
Copy link
Member

After discussion, we will remove @EnableRetry to be consistent with the rest of the portfolio. Because it is a breaking change, we're going to wait until 2023.0.0 due later in the year.

@wind57
Copy link
Author

wind57 commented Mar 9, 2023

Makes sense. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants