Possible inconsistency between InnoDB and .frm
Bug #803556 reported by
Vadim Tkachenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
This is more blueprint than bug, and we may keep it with low priority.
When we have a lot of tables ( by a lot I mean 100.000 or more),
copying .frm files may take significant time.
If we run with --no-lock options, then we have possibility to run CREATE/
during copying .frm, and we may end up with backup that has inconsistency between .frm files and
innodb data dictionary.
It would be good to have procedure to sync .frm using xtrabackup_logfile, but it may be tricky
to re-create .frm from log file.
Changed in percona-xtrabackup: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
I also have a similar problem, with thousands of databases with almost a hundred tables each. In my case I can be sure no .frm changes during backup, but I still can't use --no-lock because I need binlog information to a) do point in time restore, and b) spawn slave instances.
The innobackupex script seems to spawn a cp processes for each (backing up to an nfs mount). So in addition to the time it takes to copy the files, it is spawning processes as well. There is a small optimization for scp when you use remote option, but only groups per db. The tar option also seems to spawn a tar process for each file.
It can take tens of minutes to finish, meanwhile the entire mysql is read locked.
I also discovered that the mysql slow log will not log any queries that have lock time due to the 'flush tables with read lock' unless slow log time is 0. It was quite a mystery to have a client show waiting for several minutes for a query and nothing show in the slow log.