-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fallback to default values from application.yaml on "spring.cloud.config.fail-fast: true" #2277
Comments
Are you using |
Hey, I am using the "old" setup: I have a spring:
application:
name: my-application
cloud:
config:
uri: http://localhost:8888
server:
bootstrap: false
fail-fast: false and I am using version Would moving to |
I believe it would, see the https://docs.spring.io/spring-cloud-config/docs/4.0.3/reference/html/#config-client-fail-fast Spring Cloud Config 2.0.0.M9 is not supported any longer, I would at least upgrade to Spring Cloud 2021.0.7. |
Hey, I tried your suggestion with a "newer" application of ours. It's
However, the reason seems similar: If Ideally, there would be an option to prevent the exception and just continue running. |
What if you remove the |
If fail-fast is set to true it means to fail on startup if it can't reach the config server. You want the application to startup and use |
Is your feature request related to a problem? Please describe.
As per the docs:
We want to use that, since our config server take some time to be up. But, we also want to use the
application.yaml
, if the server is not reachable (basically, the behaviour ofspring.cloud.config.fail-fast: false
).Can we have the "best of both worlds"?
Describe the solution you'd like
When I have the
spring.cloud.config.fail-fast: false
set and addedspring-retry
andspring-boot-starter-aop
to my classpath, I want to have an additional flag to indicate, that the application should fall back default values from theapplication.yaml
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
In the ConfigServicePropertySourceLocator is the code that checks for the fail-fast propery.
The text was updated successfully, but these errors were encountered: