Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.10(EOL)
-
None
Description
10.10 21822625aa675b36a5c2548f78e8d3d8cde8b7cd |
install soname 'ha_spider'; |
create table t (c int) Engine=SPIDER; |
drop table t; |
uninstall soname 'ha_spider'; |
The uninstall statement results in warning:
Warnings:
|
Warning 1620 Plugin is busy and will be uninstalled on shutdown
|
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 MDEV-7914[1], whose commit is to blame for this call.
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
Attachments
Issue Links
- blocks
-
MDEV-32180 Spider does not clean up UDFs upon deinstallation
- Open
- is caused by
-
MDEV-7914 spider/bg.ha, spider/bg.ha_part crash server sporadically in buildbot
- Closed