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

fix(balancer) unregister healthchecker callback immediately #3207

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

hishamhm
Copy link
Contributor

@hishamhm hishamhm commented Feb 8, 2018

When a healthchecker is stopped, unregister its callback immediately, instead of waiting for the garbage collector to kick in and automatically reclaim it (as per the behavior of register_weak).

This does not modify the logic of health checks, but prevents bogus error messages from appearing in the error logs.

Thanks to @aledbf for the report!

When a healthchecker is stopped, unregister its callback immediately,
instead of waiting for the garbage collector to kick in and
automatically reclaim it (as per the behavior of `register_weak`).

This does not modify the logic of health checks, but prevents
bogus error messages from appearing in the error logs.

Thanks to @aledbf for the report!
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

Successfully merging this pull request may close these issues.

2 participants