mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-30651: Assertion `sel->quick' in make_range_rowid_filters
(Variant for 10.6: return error code from SQL_SELECT::test_quick_select) The optimizer deals with Rowid Filters this way: 1. First, range optimizer is invoked. It saves information about all potential range accesses. 2. A query plan is chosen. Suppose, it uses a Rowid Filter on index $IDX. 3. JOIN::make_range_rowid_filters() calls the range optimizer again to create a quick select on index $IDX which will be used to populate the rowid filter. The problem: KILL command catches the query in step #3. Quick Select is not created which causes a crash. Fixed by checking if query was killed.
This commit is contained in:
@ -55,5 +55,33 @@ disconnect con1;
|
||||
reap;
|
||||
set debug_sync='RESET';
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-30651: SIGSEGV in st_join_table::save_explain_data and
|
||||
--echo # Assertion `sel->quick' failed in make_range_rowid_filters
|
||||
--echo #
|
||||
|
||||
--echo # Reusing table t2 and t3 from previous test
|
||||
let $target_id= `select connection_id()`;
|
||||
|
||||
set debug_sync='in_forced_range_optimize SIGNAL ready1 WAIT_FOR go1';
|
||||
send
|
||||
explain
|
||||
select * from t2, t3
|
||||
where
|
||||
t3.key1=t2.a and t3.key2 in (2,3);
|
||||
|
||||
connect (con1, localhost, root,,);
|
||||
set debug_sync='now WAIT_FOR ready1';
|
||||
evalp kill query $target_id;
|
||||
set debug_sync='now SIGNAL go1';
|
||||
|
||||
connection default;
|
||||
disconnect con1;
|
||||
|
||||
--error ER_QUERY_INTERRUPTED
|
||||
reap;
|
||||
set debug_sync='RESET';
|
||||
|
||||
|
||||
drop table t2,t3;
|
||||
--source include/wait_until_count_sessions.inc
|
||||
|
Reference in New Issue
Block a user