[MDEV-8200] aria bug with insert select when select is a aria table (wrong result or assertion failure: `table->file->stats.records > 0 || error') Created: 2015-05-21 Updated: 2018-01-11 Resolved: 2018-01-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Aria |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.59, 10.0.34, 10.1.31, 10.2.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | roberto spadim | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
lnux |
||
| Description |
|
Hi guys i'm trying to execute a insert into table, when i use myisam it have 6 rows, but when i use aria it have 1 row |
| Comments |
| Comment by Elena Stepanova [ 2015-05-21 ] | ||||||||||||||||||||||||||||
|
On a debug server the same test case causes an assertion failure.
After fixing, please also check the initial test case (ftp.askmonty.org/private/mdev-8200.sql), see a comment about the expected result at the end of the file. | ||||||||||||||||||||||||||||
| Comment by roberto spadim [ 2015-05-27 ] | ||||||||||||||||||||||||||||
|
i didn't confirmed yet, but i think it's happening with temporary tables using aria too, i changed all production servers to use myisam | ||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2018-01-10 ] | ||||||||||||||||||||||||||||
|
This bug should only happens when locking the same Aria "transactional" table (page format) more then once with LOCK TABLES and inserting into one of them with INSERT ... SELECT when the table is empty. I am now running tests and will push when all test has passed. | ||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2018-01-11 ] | ||||||||||||||||||||||||||||
|
Fix pushed into 5.5 |