[MDEV-3426] LP:702310 - Assertion `table_ref->has_record' failed with small value for join_buffer_size Created: 2011-01-13 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: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
If a table contains a field that is comparable in size to the value for join_cache_level, certain joins cause the following assertion: mysqld: sql_select.cc:14041: int join_read_key2(THD*, JOIN_TAB*, TABLE*, TABLE_REF*): Assertion `table_ref->has_record' failed. This happens in maria-5.3 where the fixes for all other "table_ref->has_record" bugs appear to be present. backtrace: #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6 EXPLAIN: id select_type table type possible_keys key key_len ref rows Extra bzr version-info: revision-id: <email address hidden> test case: SET SESSION join_buffer_size = 1024; CREATE TABLE t3 ( f3 int(11)) ; CREATE TABLE t6 ( f3 int(11), f2 int(11)) ; CREATE TABLE t5 ( f1 int(11)) ; CREATE TABLE t1 ( f2 int(11)) ; CREATE TABLE t4 ( f4 varchar(1024), f1 int(11), PRIMARY KEY (f1)) ; SELECT STRAIGHT_JOIN * |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-01-13 ] |
|
Re: Assertion `table_ref->has_record' failed with small value for join_buffer_size bzr version-info |
| Comment by Igor Babaev [ 2011-01-14 ] |
|
Re: Assertion `table_ref->has_record' failed with small value for join_buffer_size CREATE TABLE t1 (f1 int) ; CREATE TABLE t2 (f1 int); CREATE TABLE t3 (f1 int); CREATE TABLE t4 (f1 int PRIMARY KEY, f2 varchar(1024)) ; CREATE TABLE t5 (f1 int) ; CREATE TABLE t6(f1 int); SET SESSION join_buffer_size = 9000; EXPLAIN |
| Comment by Philip Stoev (Inactive) [ 2011-01-14 ] |
|
Re: Assertion `table_ref->has_record' failed with small value for join_buffer_size |
| Comment by Igor Babaev [ 2011-01-14 ] |
|
Re: Assertion `table_ref->has_record' failed with small value for join_buffer_size |
| Comment by Igor Babaev [ 2011-01-15 ] |
|
Re: Assertion `table_ref->has_record' failed with small value for join_buffer_size |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 702310 |