[MDEV-3630] LP:802979 - Assertion `table->key_read == 0' in close_thread_table in maria-5.3 Created: 2011-06-28 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Repeatable with maria-5.3, maria-5.3-subqueries-wl90. Reproducible even after 609045. Reproducible with all relevant swiches set to OFF. assertion: mysqld: sql_base.cc:1387: bool close_thread_table(THD*, TABLE**): Assertion `table->key_read == 0' failed. #6 0x00000033b58296e6 in __assert_fail () from /lib64/libc.so.6 optimizer switch in effect: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=off,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=on,mrr_cost_based=off,mrr_sort_keys=on,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on test case: CREATE TABLE t1 ( f1 int, f2 int , KEY (f1)) ; EXPLAIN |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-06-28 ] |
|
Re: Assertion `table->key_read == 0' in close_thread_table in maria-5.3 id select_type table type possible_keys key key_len ref rows Extra |
| Comment by Timour Katchaounov (Inactive) [ 2011-06-29 ] |
|
Re: Assertion `table->key_read == 0' in close_thread_table in maria-5.3 ERROR 1242 (21000): Subquery returns more than 1 row My hypothesis is, that because the optimizer detects early that the |
| Comment by Timour Katchaounov (Inactive) [ 2011-06-30 ] |
|
Re: Assertion `table->key_read == 0' in close_thread_table in maria-5.3 EXPLAIN Both the original, and this test case crash as a result of evaluating single-row subqueries The solution is two-fold: fully disable subquery evaluation during optimization in all cases, |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 802979 |