[MDEV-3989] Server crashes on import from MariaDB mysqldump export with partitioned Aria table Created: 2012-12-28 Updated: 2013-06-14 Resolved: 2013-05-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.0, 5.5.28a |
| Fix Version/s: | 10.0.3, 5.5.31 |
| Type: | Bug | Priority: | Major |
| Reporter: | Risato Stefano | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux 64 bit and maybe Windows 32 bit |
||
| Attachments: |
|
| Description |
|
The original description can be found at the end of this field. I've left it intact along with the summary for the reference of end users, as that's the symptoms they are likely to see. The following test case is a simplified extract from a dump file produced by mysqldump. It causes valgrind errors 'Invalid read' which, I suppose, is a root cause of the observed and described crash.
Also reproducible on current 10.0-base. =========================== The problem doesn't affect the same table using MyISAM instead of Aria. The dump is created with default options of the mysqldump.exe included in MariaDB 5.5.28a Windows 32 bit version. The file created contains both the create statement and the insert statements, and the problem occours randomly after restoring about 100-200 MB of data. If I create two separate files for create table and inserts (I did it splitting the original dump file with "head" and "tail" commands), and I run the file separately, the problem doesn't occurs. Example: mysql mydb < dump.sql (crash) Inserting a truncate table statement between the create table and the inserts, the problem doesn't occours. |
| Comments |
| Comment by Elena Stepanova [ 2012-12-28 ] |
|
Hi, >> If you need the data, it's a 100MB bzip2 file Yes, could you please upload the file to ftp://ftp.askmonty.org/ ? Thank you. |
| Comment by Risato Stefano [ 2012-12-28 ] |
|
Ok, file uploaded, |
| Comment by Elena Stepanova [ 2012-12-28 ] |
|
Thank you for the data. I was able to reproduce the crash. |
| Comment by Risato Stefano [ 2013-02-19 ] |
|
I have a table that I could not restore even if I truncate the table first. In fact with this table the server if crashing always; the only way to restore is to comment the statement "DISABLE KEYS..." in the dump file, but it takes very very long time to restore. I don't know if the problem is the same of this bug, tell me if I have to open a different bug or if you need the data file (2GB, bzipped 200MB) in the private ftp folder. Thank you. |
| Comment by Elena Stepanova [ 2013-02-19 ] |
|
Please for now upload the bzipped version under this bug report number. When the bug gets fixed, we'll check whether the the other dump starts working all right. |
| Comment by Risato Stefano [ 2013-02-20 ] |
| Comment by Risato Stefano [ 2013-04-30 ] |
|
Hello, I've tested the 10.0.0.2, and now the server doesn't crash anymore, but the operation fail anyway with the error: Thank you, bye. |
| Comment by Michael Widenius [ 2013-05-11 ] |
|
This is probably the same issue as with |
| Comment by Michael Widenius [ 2013-05-12 ] |
|
Fixed and pushed into 5.5 main tree. |
| Comment by Risato Stefano [ 2013-06-14 ] |
|
I have tested the 10.0.0.3 linux 64, and the server doesn't crash anymore, but the operation still fails after about 500MB loaded with error "ERROR 2013 (HY000) at line 879: Lost connection to MySQL server during query". |