I did see this issue when working on the Spring Boot 2.4 PR. I thought it was because Spring Cloud Config’s retry feature wasn’t working, so I sent this to Spencer Gibb.
Hey Spencer,
I’m trying to upgrade JHipster to use Spring Boot 2.4.2. Tonight, I discovered y’all released Spring Cloud Config 3.0.1 to fix some retry issues.
I have the following in my application-prod.yml:
cloud:
config:
retry:
initial-interval: 1000
max-interval: 2000
max-attempts: 100
uri:
http://admin:${jhipster.registry.password}@localhost:8761/config # name of the config server's property source (file.yml) that we want to use
name: reactiveGateway
profile: prod
label: main # toggle to switch to a different version of the configuration as stored in git
# it can be set to any label, branch or commit of the configuration source Git repository
config:
import: 'configserver:’
However, the retry doesn’t seem to happen. It just fails on startup. I do have spring-retry in my classpath.
$ mvn dependency:tree | grep spring-retry
[INFO] +- org.springframework.retry:spring-retry:jar:1.3.1:compile
Any advice would be great.
Thanks!
Matt
He never replied, but we discovered that disabling testcontainers for the failing jobs fixed them. It also seems the failure happens connecting to Eureka, not Spring Cloud Config.