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

The reflector watcher stopped silently #6379

Open
bzhangyan11 opened this issue Sep 27, 2024 · 2 comments
Open

The reflector watcher stopped silently #6379

bzhangyan11 opened this issue Sep 27, 2024 · 2 comments

Comments

@bzhangyan11
Copy link

Describe the bug

My application cannot receive any events of my cr from the fabric8 informer occasionally.
I analyzed logs and found there was no more logs about my cr after reconnecting failed.
image

Then i analyzed the instances of reflector class(io.fabric8.kubernetes.client.informers.impl.cache) in memory. I found the watching field of the reflector is false but stopFuture is not completed.
image

It seems to there is a bug in reconnect scene.
image
image
image
If an exception occurs in processList, there is no logs will be recorded and the watcher will stop silently

Fabric8 Kubernetes Client version

6.13.4

Steps to reproduce

i cannot reproduce

Expected behavior

it should retry after reconnecting failed.

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

other (please specify in additional context)

Environment

Linux

Fabric8 Kubernetes Client Logs

No response

Additional context

No response

@shawkins
Copy link
Contributor

It's not clear from what you have posted that there is a bug. The watching boolean can be false during the normal operation of the relfector. As long as you see an active reconnect future along with that, then the reflector is still trying to re-establish the watch.

@bzhangyan11
Copy link
Author

It's not clear from what you have posted that there is a bug. The watching boolean can be false during the normal operation of the relfector. As long as you see an active reconnect future along with that, then the reflector is still trying to re-establish the watch.

Ok, but my application indeed fails to receive any events before it's restarted, i will keep watching.
thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants