PropertySource Reload #802
Unanswered
griffygruffy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having some trouble with reloading properties from AWS ParameterStore. I've been following the guide here: https://docs.awspring.io/spring-cloud-aws/docs/3.0.0-SNAPSHOT/reference/html/index.html#propertysource-reload
I have the "refresh" strategy configured. The refresh event is being fired when properties have changed on AWS Parameter Store but the properties in the context never get updated.
PollingAwsPropertySourceChangeDetector.executeCycle runs, identifies changes and then invokes reloadProperties however I don't think the properties in ParameterStorePropertySource are being updated and the ContextRefresher.refresh does not make any changes. Next time executeCycle runs it detects exactly the same changes.
From the debugger if i invoke init on the property source immediately before reloadProperties then it updates the context.
Not sure if this is a bug or if its my config.
Currently have the following in gradle with spring boot 3.0.6:
Update:
looks like it was my config. Moving the "spring.config.import" property out of application.yml into bootstrap.yml fixed it for me and now the reload happens as expected.
Beta Was this translation helpful? Give feedback.
All reactions