[MDEV-32796] Spider uninstall fails with "plugin busy" Created: 2023-11-14 Updated: 2023-12-19 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.4, 10.10 |
| Fix Version/s: | 10.4, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Yuchen Pei | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The uninstall statement results in warning:
Initial analysis shows this could be caused by a call to thd_set_ha_data(thd, spider_hton_ptr, trx) which increases the ref count to the plugin which later did not get decreased, from spider_get_trx() during the create table statement. See also kentoku's comment in Trace: intern_plugin_lock > plugin_lock > ha_lock_engine > thd_set_ha_data > ha_spider::create > handler::ha_create > create_table_impl > mysql_create_table_no_lock > Sql_cmd_create_table_like::execute > mysql_parse > dispatch_command > do_command > handle_one_connection > pfs_spawn_thread |
| Comments |
| Comment by Yuchen Pei [ 2023-12-18 ] |
|
Could reproduce at 10.4 87a5d16911bb94d383480fdd49e20876ed1400f2 |
| Comment by Yuchen Pei [ 2023-12-19 ] |
|
Normally one could counter the call to thd_set_ha_data() with a If we simply remove the call to thd_set_ha_data() in InnoDB for example, like Spider, may increment the ref_count during a |