[MDEV-31584] Assertion `thd->transaction->stmt.is_empty() || thd->in_sub_stmt' failed in mysql_execute_command from spider_table_bg_sts_action on INSTALL PLUGIN Created: 2023-06-29 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Roel Van de Paar | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Possibly related to MDEV-24706. (See the first comment for an mtr case)
Leads to:
Bug confirmed present in: Bug (or feature/syntax) confirmed not present in: |
| Comments |
| Comment by Roel Van de Paar [ 2023-06-29 ] | ||||||||||||||||||||||||||||||||
|
MTR Testcase
| ||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2023-06-30 ] | ||||||||||||||||||||||||||||||||
|
I can confirm this bug is reproducible even with the init bugs fixed, | ||||||||||||||||||||||||||||||||
| Comment by Yuchen Pei [ 2023-06-30 ] | ||||||||||||||||||||||||||||||||
|
this is not a spider issue. It is either an innodb or a runtime issue. Ha_trx_info::register_ha > trans_register_ha > innobase_register_trx > ha_innobase::external_lock > handler::ha_external_lock > mysql_lock_tables > mysql_lock_tables > open_ltable > open_log_table > Log_to_csv_event_handler::log_general > general_log_write > execute_server_code > loc_advanced_command > server_mysql_send_query > spider_init_system_tables > spider_db_init > ha_initialize_handlerton > plugin_do_initialize > finalize_install > mysql_install_plugin > mysql_parse > dispatch_command > do_command > do_handle_one_connection > handle_one_connection | ||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-06-30 ] | ||||||||||||||||||||||||||||||||
|
MDEV-26373 is somewhat similar, involving the the system table mysql.slow_log instead of mysql.general_log. | ||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2023-09-26 ] | ||||||||||||||||||||||||||||||||
|
It looke like I can not repeat it (unexpectedly it fails to write in wrong created log):
| ||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2023-09-26 ] | ||||||||||||||||||||||||||||||||
|
correct test case is (innodb engine is important to trigger assert with problem of transactions):
| ||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2023-09-26 ] | ||||||||||||||||||||||||||||||||
|
Taking unreaistic malforming log I do not think it is bug of big importance |