-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add a convenient way to make sure a SharedIndexInformer
is done watching
#4794
Comments
Is the high-level issue that event processing continues after the stop call and the future is completed? Or just that you expect the websocket to be closed when the future completes? It would be straight-forward to ensure event processing has stopped by adding a check of the stopped future in ReflectorWatcher.eventReceived. |
Actually both, as far I'm concerned. |
Is your enhancement related to a problem? Please describe
Right now, the only way to make sure a
SharedIndexInformer
is done watching is by polling:SharedIndexInformer
exposes a way to get notified when astop
has been requested:... but, as of version 6.4.0, the watch is likely to be still running after completion:
Describe the solution you'd like
Either:
stop
blockingstopFuture.complete(null)
from within:Describe alternatives you've considered
Additional context
No response
The text was updated successfully, but these errors were encountered: