Bug #61854 | mysqldump --single-transaction --flush-log breaks consistency | ||
---|---|---|---|
Submitted: | 13 Jul 2011 13:52 | Modified: | 27 Jan 2012 13:58 |
Reporter: | Mikiya Okuno | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: mysqldump Command-line Client | Severity: | S2 (Serious) |
Version: | 5.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[13 Jul 2011 13:52]
Mikiya Okuno
[28 Jul 2011 12:05]
Sveta Smirnova
Bug #60847 was marked as duplicate of this one.
[22 Nov 2011 18:17]
Adam Whelan
I am having the same issue on 5.5.16 x64. With the following backup command I can't produce a consistent backup. I had no problem before when I was on 5.0. I noticed the problem went I used the dump to create a new slave server. When I started up my new slave I had numerous duplication alerts. After reviewing the data from the restore I could see that it did not create a consistent backup. Has there been any updates or progress? I need to create a new slave without stopping or completely locking my tables. Is there any way to currently do this? mysqldump -uxxx -pxxx -AFfq --single-transaction --master-data=2 --routines --triggers | /bin/gzip > backup.sql.gz
[27 Jan 2012 13:58]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html
[27 Jan 2012 13:59]
Jon Stephens
Fixed in 5.5+. Documented in the 5.5.21 and 5.6.5 changelogs as follows: When running mysqldump with both the --single-transaction and --flush-log options, the flushing of the log caused an implicit commit, causing more than one transaction to be used and thus breaking consistency. Closed.