Skip to content
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

KubernetesClient informer stopped silently after running couple weeks #4340

Closed
hkbuddy opened this issue Aug 20, 2022 · 5 comments
Closed

KubernetesClient informer stopped silently after running couple weeks #4340

hkbuddy opened this issue Aug 20, 2022 · 5 comments
Labels
status/stale Waiting on feedback Issues that require feedback from User/Other community members

Comments

@hkbuddy
Copy link

hkbuddy commented Aug 20, 2022

Describe the bug

After running KubernetesClient informers for couple weeks, it just stopped working silently until the pod being restarted. No logs were found related the this issue. Or let me know how can I debug this issue. Thanks.

Fabric8 Kubernetes Client version

5.12.3

Steps to reproduce

run KubernetesClient informers for couple weeks

Expected behavior

informers should continue to process events.

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

1.22

Environment

Linux

Fabric8 Kubernetes Client Logs

No response

Additional context

No response

@shawkins
Copy link
Contributor

We have informers running for weeks at a time as well and have not experienced any issue. You can check the informer isWatching method as part of a health check and turn on debug logging if you didn't see anything at info / warn. If the informer thinks that it's watching, but you are not getting events, then you are hitting an issue similar to kubernetes/kubernetes#102464 - but different as that one was based on the api server mishandling the timeout for service watches. If that's the case we'd need to know the type of resource and also file an upstream issue.

@hkbuddy
Copy link
Author

hkbuddy commented Aug 23, 2022

ok thanks @shawkins! Let us add isWatching method as part of a health check and see how it goes.

@andreaTP
Copy link
Member

You can check the informer isWatching method as part of a health check

I would say that it should be part of the "Ready" check, but, apart from this detail, I think this is something that can be provided by the SDK itself cc. @csviri @metacosm

@manusa manusa added the Waiting on feedback Issues that require feedback from User/Other community members label Aug 30, 2022
@shawkins
Copy link
Contributor

shawkins commented Sep 8, 2022

Could be related to #4369 which is addressed by #4365

@stale
Copy link

stale bot commented Dec 8, 2022

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!

@stale stale bot added the status/stale label Dec 8, 2022
@stale stale bot closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/stale Waiting on feedback Issues that require feedback from User/Other community members
Projects
None yet
Development

No branches or pull requests

4 participants