membphis commented on issue #2745:
URL: https://github.com/apache/apisix/issues/2745#issuecomment-727228213
Needs to call the `checker:clear()` before we call the `stop` method.
Here is the bugfix patch, welcome PR:
```patch
diff --git a/apisix/balancer.lua b/apisix/balancer.lua
index 4eba0bbd..a9c0f3dc 100644
--- a/apisix/balancer.lua
+++ b/apisix/balancer.lua
@@ -106,6 +106,7 @@ local function create_checker(upstream,
healthcheck_parent)
if upstream.parent then
core.table.insert(upstream.parent.clean_handlers, function ()
core.log.info("try to release checker: ", tostring(checker))
+ checker:clear()
checker:stop()
end)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]