-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
spring-cloud-kubernetes-fabric8-leader: 2.0.1 - Watcher stopped unexpectedly, will restart #2787
Comments
In past we had added reconnect on 410 but it was reverted, see #1800 (comment) . You should retry watch from client side. |
@rohanKanojia If you see the leader example, it hides the watcher.. So any thoughts on how to achieve this ? |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Hi there, did you find any solution to that? I had similar issues, got those watcher warning showing up in the server log, wanted to avoid them. |
The underlying implementation o Spring Cloud should be using a Shared Informer instead of a Watcher. |
See this StackOverflow post for a sample implementation: https://stackoverflow.com/questions/61409596/kubernetes-too-old-resource-version |
Just chiming in also, am seeing this warning in logs continuously (about 3-4x per hour). Using spring-cloud-kubernetes-fabric8-leader version 2.1.0. |
From the context I understand that this needs to be fixed downstream. Is there an open issue there? Maybe we can help trying to port whatever the current implementation is to use a SharedInformer instead of a Watcher. |
What version is that on? The latest versions of fabric8 also now support bookmarks, so you won't typically resource too old. Prior versions would routinely see resource too old after the watch connections timed out. |
|
I added a dependency in my maven pom on |
Marking as resolved by bookmark support. |
Hi,
Using the spring-cloud-kubernetes-fabric8-leader: 2.0.1 to determine a leader for the services in my pod.
Noticed the following warnings appearing:
Any thoughts or solutions?
The text was updated successfully, but these errors were encountered: