[MDEV-10410] MariaDB crashes with TokuDB and ANALYZE TABLE in background. Created: 2016-07-21 Updated: 2016-11-24 Resolved: 2016-11-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - TokuDB |
| Affects Version/s: | 10.1.16 |
| Fix Version/s: | 10.1.18 |
| Type: | Bug | Priority: | Major |
| Reporter: | jocelyn fournier | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Attachments: |
|
| Description |
|
Hi, I've enabled the ANALYZE TABLE background task for TokuDB :
Then I ran a mysqlcheck -a -A. And to check the ANALYZE TABLE task status, I use :
This command crashes MariaDB :
Thanks and regards, |
| Comments |
| Comment by Elena Stepanova [ 2016-07-21 ] |
|
Apparently it depends on the schema. How big is yours? Would you be able to upload it to our ftp? Please also attach your cnf file(s). |
| Comment by jocelyn fournier [ 2016-07-21 ] |
|
The tar.gz of the tokudb backup is about 270GB |
| Comment by Elena Stepanova [ 2016-07-21 ] |
|
Yeah, it's unrealistic. |
| Comment by jocelyn fournier [ 2016-07-21 ] |
|
I've just attached the my.cnf |
| Comment by jocelyn fournier [ 2016-07-21 ] |
|
I have to restore an offline slave with the latest backup, I'll try to use it to simplify the testcase with fewer tables, if possible. |
| Comment by jocelyn fournier [ 2016-07-21 ] |
|
I've also attached the schema dump. |
| Comment by jocelyn fournier [ 2016-07-21 ] |
|
Hi Elena, If I import a table big enough to have the time to run the SELECT * FROM INFORMATION_SCHEMA.TOKUDB_BACKGROUND_JOB_STATUS;, import the schema dump, run an analyze on all the table in background, and finally run the SELECT * FROM INFORMATION_SCHEMA.TOKUDB_BACKGROUND_JOB_STATUS; command, it always crashes. HTH, |
| Comment by Rich Prohaska [ 2016-07-22 ] |
|
Problem is caused by an sprintf buffer overflow. Code needs to use snprintf. See https://tokutek.atlassian.net/browse/DB-1005 |
| Comment by Elena Stepanova [ 2016-07-22 ] |
|
prohaska7, thanks! |
| Comment by jocelyn fournier [ 2016-11-24 ] |
|
This one seems to be fixed now |
| Comment by Elena Stepanova [ 2016-11-24 ] |
|
joce, Thanks for the update. |