[MDEV-8475] stale .TMM file causes Aria engine to stop serving the table Created: 2015-07-16 Updated: 2017-03-13 Resolved: 2015-07-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Storage Engine - Aria, Storage Engine - MyISAM |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marc | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
I'm not sure on which operation the file was created (assuming mysqloptimize), but assume you have this temp file. No automatic repair will work. Doing a repair by hand, will work, but will not remove the temp file, as it is not removed by a full server restart. |
| Comments |
| Comment by Elena Stepanova [ 2015-07-16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Are you getting something like
on server startup when automatic repair does not work? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2015-07-16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
err-log: 1:14 is the time the cron-job tried to execute "mysqloptimize -A", before this time everything was fine. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-07-16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks. MyISAM is also affected
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2015-07-17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Issue was two fold (both in MyISAM and Aria)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2015-07-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fix pushed to 10.0 tree | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2015-07-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fix pushed to 10.1 tree (not 10.0) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Phil Sweeney [ 2015-07-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I actually experienced this recently after an upgrade to MariaDB 10 (From TokuDB 5.5) There is an Oracle bug open here for it (from 2010!) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Fustini [ 2015-08-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I experience randomly this problem running mysqloptimize weekly on all tables present in different MariadDB 10.0.20 servers. Sometimes after crash I have to delete original table too because was unrecovreable and crash mariadb when try to check / repair table. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-08-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
As the comment above says, it was fixed in 10.1.6. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Fustini [ 2015-08-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2015-08-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-08-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
mokraemer, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2015-08-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
not now. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Fustini [ 2015-08-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For me too, but we have the problem now with last version avialable for 10.0 and get a beta version to solve a problem in a production enviroment is not a fair otption for me. Elena how do you suggest to do ? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-08-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Before I can answer that, I need to understand something. This problem has apparently been around forever, in previous releases, in MySQL, everywhere. How did it happen that it suddenly started bothering you now? Has anything in your procedure changed? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2015-08-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@Elena: that's what I was pointing out: Sine Mariadb 10.0 I can see is from time to time when mysqloptimize runs, one of the tables got stuck and runs into state "crashed". Since this doesn't happen every night, I assume some concurrent access to the table during optimize, which is interpreted as "crash". I my description is clear enough to understand the problem. PS: maybe I should open a new bug for this issue, cause this is not exactly this bug, but leads to it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-08-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
mokraemer, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Fustini [ 2015-08-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2015-08-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@all: created a new bug for this problem. |