Details
-
Type:
Bug
-
Status: Confirmed
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 10.0
-
Component/s: Admin statements
-
Labels:None
-
Environment:Linux
Description
Sometimes at nightly cron-jobs doing "mysqloptimize" one of the tables get marked "crashed" and automatic repair fails.
The last one is caused by related bug.
I tried to force the error by stressing the database with inserts/reads during mysqloptimize, but I was unable to get it crashed at the moment. But it happens sometimes at night (when the cron job runs).
The script which consists of
mysqlcheck -s -A
mysqloptimize -s -A
mysqlanalyze -s -A
is running for years without any problem. The problem first occured after update from MariaDB 5.5 to 10.0.19.
If this is relevant: all tables have Aria engine.
I still expect some racing condition - as a "user" I'm not familiar when a table is marked "crashed" - but there must be some condition when some lock, or gathering the lock interfears with this state after lock is removed.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-8475 stale .TMM file causes Aria engine to stop serving the table
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Marc, would you be able temporarily enable general log on the instance where you are getting the issue? This way we'll know what kind of concurrency, if any, we are dealing with. General log can affect performance, but I assume it's not critical for you at least at nights, if you can afford massive table maintenance.
In fact, you can add it to your nightly job, enabling it right before the check/optimize/analyze, and disabling it afterwards.
When the corruption happens next time, we'll match its time with the general log and will see what else was happening with the same table.