temporary tables vs. backup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
In Progress
|
High
|
Lenz Grimmer |
Bug Description
When running mylvmbackup you create a snapshot in time that will recover on a different server to a consistent state. This is equivalent to uncleanly shutting down a slave and restarting it into recovery.
That means that the backup will NOT contain any temporary tables, also no CREATE TEMPORARY TABLES that were in flight within the SQL_THREAD. The backup will not be useful to restore a working slave from it when Slave_open_
mylvmbackup must always check
l1: FLUSH TABLES WITH READ LOCK
is Slave_open_
if not,
UNLOCK TABLES
wait a moment
goto l1
end if
so that the consistent snapshot we create has Slave_open_
Hi Kris, thanks a lot for reporting this - very good point indeed. I'll look into this. You don't happen to have a patch for this already? temp_tables ca be queried via the SQL interface?
I assume the value of slave_open_
Do you think it would make sense to have a counter or timer (e.g. number of retries) that restricts how many times this check is performed?