APISIX plug-ins are hot-loaded, it's very convenient. But there are some tiny faults when we use timer in global plug-ins, just like 'log-rotate'. There will be more then one timer when we update the attributes of 'log-rotate' plug-in by reload. You will find ‘pkg_loaded[pkg_name] = nil’ in Line 63 of apisix/plugin.lua, the earlier timer created will be out of control when we reload the plug-in. Should we distinguish the reload of plugin's metadata from the reload of plugin's function, provide a way to update the configuration only?
[email protected]
