You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/27 02:22:11 UTC

[GitHub] [apisix] OnlyPiglet opened a new issue #2865: request help:

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:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #2865: request help: a doubt about the clean_handler

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2865:
URL: https://github.com/apache/apisix/issues/2865#issuecomment-734708264


   we mainly use this feature to close the upstream health checker when the route is updated


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #2865: request help: a doubt about the clean_handler

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2865:
URL: https://github.com/apache/apisix/issues/2865


   


----------------------------------------------------------------
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:
users@infra.apache.org