OnlyPiglet opened a new issue #2865:
URL: https://github.com/apache/apisix/issues/2865


   ### Issue description
   
   just want to ask when the clean_handlers function will be execute which are 
in the line 106 of balancer.lua , I just see the cleaner_handler will be 
execute in the  line 170 of config_etcd.lua 
   balancer.lua 
   ```lua
       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)
   
       else
           core.table.insert(healthcheck_parent.clean_handlers, function ()
               core.log.info("try to release checker: ", tostring(checker))
               checker:clear()
               checker:stop()
           end)
       end
   ```
   
   config_etcd.lua
   ```lua
           if self.values then
               for i, val in ipairs(self.values) do
                   if val and val.clean_handlers then
                       for _, clean_handler in ipairs(val.clean_handlers) do
                           clean_handler(val)
                       end
                       val.clean_handlers = nil
                   end
               end
   
   ```
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   lastest
   * OS:
   


----------------------------------------------------------------
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]


Reply via email to