-
Notifications
You must be signed in to change notification settings - Fork 1k
Reload mode - event not working for k8 config - 1.1.2.RELEASE #557
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
I have an issue with events when updating the configmap as well. At first, the application picks up the configmap values and changes to configmap gets do get triggered: 2020-05-20 17:41:28.493 +0000 [OkHttp https://10.96.0.1/...] INFO o.s.c.k.c.r.EventBasedConfigurationChangeDetector - Detected change in config maps However, if I leave the app running in my k8s cluster for about 15-20 minutes, the events stop firing when I submit changes to the config map. spring boot - 2.2.4.RELEASE |
Same problem. Here are the relevant logs when the problem occurs:
A healthy reconnect looks like this:
Versions: |
Any progress ? I think we should just catch 'HTTP_GONE' event in onClose and start watch again. This is know issue in kubernetes when resources is too old: fabric8io/kubernetes-client#1800 (comment)
My solution:
|
Are there any solutions or bug fixes here. I have the same problem. |
Which bean was used here? Can you show me the complete code of your solution class? |
@UltimateFighter |
Thank you very much for this. In which version (and when) will this be included? |
We are waiting for the author's to make some minor changes to the PRs |
Sure here it is. It is based on spring sollution but now I also modify onClose to fix this bug
|
@ryanjbaxter the documentation for the PropertySource Reload feature mentions that it is deprecated in the 2020.0 release: One can conclude, that this means, that this issue will never get resolved. Would it help to keep it, if someone would work on this issue and implement the mentioned retry? |
Fixed via 888031d |
I'm able to fetch the K8 config maps on startup but on subsequent update to the config map, its not resulting in consuming the event and updating the values in my spring boot application.
Here are the versions:
spring boot - 2.2.7.RELEASE
spring-cloud-gcp - 1.2.2.RELEASE
spring-cloud - Hoxton.SR4
Its working fine in
spring boot - 2.1.11.RELEASE
spring-cloud-gcp - 1.1.3.RELEASE
spring-cloud - Greenwich.SR4
Able to fetch the config map during startup as well as consuming the event when there is a change in the config map
The text was updated successfully, but these errors were encountered: