Details
Description
If one does the following sequence of operations
- make some action that updates statistical tables (e.g. ANALYZE TABLE ... PERSISTENT FOR ALL).
- kill the server
- start the server again
then any action that attempts read from EITS tables will not be able to open the tables anymore. Opening the table will fail with "table marked as crashed" error.
This task is about making EITS tables more resilient to the scenario.
There are two things to be done:
1. Flush statistical table to disk as soon as we've made any modification (similar to what is done to mysql.proc)
2. Enable auto-repair for statistical tables, like it happens with regular myisam tables.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Hint from Monty: check out the code in sp.cc:
if (table->file->ha_write_row(table->record[0])) ret= SP_WRITE_ROW_FAILED; /* Make change permanent and avoid 'table is marked as crashed' errors */ table->file->extra(HA_EXTRA_FLUSH);Note the HA_EXTRA_FLUSH call. We will need to add it to EITS tables.