--rebuild-indexes holds on to disk space during --prepare
Bug #1111380 reported by
Matt
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
High
|
Alexey Kopytov | ||
2.2 |
Fix Released
|
High
|
Alexey Kopytov |
Bug Description
After doing a --compact backup with xtrabackup I was doing a --prepare --rebuild-indexes, and found that the temporary files that are created (.ibd.tmp) during the expanding phase are deleted but not flushed from disk. This means that in order to do a --prepare of the backup, you need the entire size of the backup free on disk on top of the backup itself (and expanded tables), which may be unmaintainable for very large backups.
As the tables are expanded individually then the temporary file deleted, can these deleted temporary files not be flushed so as to free the disk space they use immediately?
Related branches
lp:~akopytov/percona-xtrabackup/bug1111380
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 12 lines (+2/-0)1 file modifiedsrc/compact.cc (+2/-0)
To post a comment you must log in.
Temporary files are renamed to original .ibd files after they are expanded. Which means disk space occupied by original files should be reclaimed. So I'm not sure I understand the problem.