mariadb/storage/spider
Yuchen Pei 49d976feaa
MDEV-29605 Reset queued ping info of all spider connections associated with a closed spider handler
A spider_conn may outlive its associated ha_spider (in the field
queued_ping_spider) used for connecting to and pinging the data
node (a call to spider_db_ping(), guarded by the boolean field
queued_ping). In a call to ha_spider::close() (which is often preceded
with the deletion of the ha_spider itself), many cleanups happen,
including freeing the associated spider_share, which is used by the
spider_conn in spider_db_ping. Therefore it is necessary to reset both
the queued_ping_spider and queued_ping fields, so that any further
spider interaction with the data node will not trigger the call using
the ha_spider including its freed spider_share.

Also out of caution added an assert and internal error in case a
connection has not been established (the db_conn field of type
MYSQL * is NULL), and attempt to connect is skipped because both
queued_connect and queued_ping are false. Note that this unlikely (if
not impossible) scenario would not be a regression caused by this
change, as it strictly falls under the scenario of this bug.
2025-02-24 14:47:58 +11:00
..
mysql-test/spider MDEV-29605 Reset queued ping info of all spider connections associated with a closed spider handler 2025-02-24 14:47:58 +11:00
CMakeLists.txt Merge branch '10.5' into 10.6 2024-10-15 16:00:44 +11:00
ha_spider.cc MDEV-29605 Reset queued ping info of all spider connections associated with a closed spider handler 2025-02-24 14:47:58 +11:00
ha_spider.h Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_conn.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_conn.h Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_copy_tables.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_copy_tables.h MDEV-27642 Spider: remove #ifdef WITHOUT_SPIDER_BG_SEARCH 2022-02-10 14:58:26 +09:00
spd_db_conn.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_db_conn.h Merge branch '10.5' into 10.6 2025-01-29 11:17:38 +01:00
spd_db_include.cc Merge branch '10.6' into 10.11 2024-09-11 16:10:53 +10:00
spd_db_include.h Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_db_mysql.cc MDEV-29605 Reset queued ping info of all spider connections associated with a closed spider handler 2025-02-24 14:47:58 +11:00
spd_db_mysql.h Merge branch '10.6' into 10.11 2024-10-29 15:24:38 +01:00
spd_direct_sql.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_direct_sql.h MDEV-27642 Spider: remove #ifdef WITHOUT_SPIDER_BG_SEARCH 2022-02-10 14:58:26 +09:00
spd_err.h Merge 10.5 into 10.6 2024-06-07 10:03:51 +03:00
spd_group_by_handler.cc Merge 10.6 -> 10.11 2024-12-05 10:11:58 +01:00
spd_group_by_handler.h Merge branch '10.6' into 10.11 2024-10-29 15:24:38 +01:00
spd_i_s.cc Merge branch '10.6' into 10.11 2024-09-11 16:10:53 +10:00
spd_include.h Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_init_query.h Merge branch '10.6' into 10.11 2024-05-10 20:02:18 +02:00
spd_malloc.cc Merge branch '10.5' into 10.6 2024-09-11 15:49:16 +10:00
spd_malloc.h MDEV-20179 Server hangs on shutdown during installation of Spider () 2019-07-30 06:16:48 +09:00
spd_param.cc Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
spd_param.h MDEV-27643 Spider: remove #ifdef HA_CAN_BULK_ACCESS 2024-09-10 11:19:19 +10:00
spd_ping_table.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_ping_table.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
spd_sys_table.cc Merge branch '10.6' into 10.11 2024-10-29 15:24:38 +01:00
spd_sys_table.h Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
spd_table.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_table.h Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
spd_trx.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_trx.h MDEV-28526 Spider: remove conn_kind member variables 2025-01-22 11:20:06 +11:00
spd_udf.cc Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spd_udf.def MDEV-4438 - Spider storage engine 2013-06-27 15:18:48 +04:00
spd_udf.h Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
spider.cnf Unify config syntax in default files 2020-08-01 10:31:41 +10:00