mygrsun opened a new issue #6520: URL: https://github.com/apache/apisix/issues/6520
### Issue description I check the code ,destroy fuction is called by unload_plugin,the unload_plugin call in the load .But the recursive var local_plugins_hash is set in the line 201,so here local_plugins_hash is empty ,so unload_plugin cant be called. <img width="755" alt="image" src="https://user-images.githubusercontent.com/4070282/156929776-0c3c7a68-731b-4b21-aee7-8a22f8bd6641.png"> ### Environment - apisix version (cmd: `apisix version`):2.11.0 - OS (cmd: `uname -a`):Linux VM-233-56-centos - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):nginx version: openresty/1.19.9.1 - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): - apisix-dashboard version, if have: - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner): - luarocks version, if the issue is about installation (cmd: `luarocks --version`): ### Steps to reproduce 1 apisix reload 2 check log ### Actual result destroy not be called ### Error log no ### Expected result _No response_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
