-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[bug]: ResourceWatcher stops working after leadership changes #522
Comments
Shouldn't be the The reconnect subscription should be either recreated on each |
Hey @tomasfabian |
Hi @buehler, Thanks. |
Hey @tomasfabian |
Ok no problem if it is a hassle, we will upgrade our operator to v7. |
Describe the bug
When the leadership changes the
ResourceWatcher
throws an unobserved exception:My suspicion is that this happens after calling the
StartAsync
again on the same instance afterStopAsync
.The problem could be fixed by removing this line where the
_reconnectHandler
is disposed again outside of the previous if(!fromStop)
clause.To reproduce
Change the leadership from
LeaderState.Leader
toLeaderState.Candidate
and back toLeaderState.Leader
.Expected behavior
The resource watcher should not stop watching after leadership changed.
Screenshots
No response
Additional Context
I can prepare a PR if you will confirm that the issue is legitimate. Could be related to #482.
The text was updated successfully, but these errors were encountered: