Bug #54454 | MEB: innobackup --databases does not create ibbackup_binlog_marker.frm | ||
---|---|---|---|
Submitted: | 12 Jun 2010 10:32 | Modified: | 8 Feb 2011 17:55 |
Reporter: | Ingo Strüwing | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Enterprise Backup | Severity: | S2 (Serious) |
Version: | 1.5.2, 1.7.1-rc | OS: | Any |
Assigned to: | Ingo Strüwing | CPU Architecture: | Any |
[12 Jun 2010 10:32]
Ingo Strüwing
[12 Jun 2010 10:48]
Ingo Strüwing
Unacceptable workaround is to remove $DATADIR/mysql/ibbackup_binlog_marker.ibd manually before backup.
[12 Jun 2010 14:31]
Ingo Strüwing
Sorry, the option is --databases, not --database. And it takes a list of fatabases, not a regular expression. It is just a typo in this bug report. The behavior is described correctly.
[15 Jun 2010 14:43]
Ingo Strüwing
True. But often there is no InnoDB table in the mysql database. So why would a user want to add it to the list of databases? Is a user expected to know that IHB creates an InnoDB table "mysql.ibbackup_binlog_marker", and therefore needs to include the mysql database unconditionally? IMHO, that special table is an IHB internal affair and thus deserves special handling. It shouldn't be a problem to copy its .frm to backup dir immediately after creating it. Even if it turns out later that the mysql frms had to be included anyway, it shouldn't hurt to copy it again.
[1 Jul 2010 15:21]
Ingo Strüwing
Approved on June 17.
[7 Feb 2011 15:52]
Ingo Strüwing
Per Pekka: Support for ibbackup_binlog_marker has been in innobackup since version 1.0. The --databases option was introduced in innobackup 1.5.0 (released on September 29, 2008). This feature was contributed by Paddy Sreenivasan of Zmanda, Inc. (paddy at zmanda.com). Ingo: IMHO it means that the bug was already in the wild. So it would be nice to have a changelog entry for it.
[7 Feb 2011 15:52]
Ingo Strüwing
Per Pekka: Support for ibbackup_binlog_marker has been in innobackup since version 1.0. The --databases option was introduced in innobackup 1.5.0 (released on September 29, 2008). This feature was contributed by Paddy Sreenivasan of Zmanda, Inc. (paddy at zmanda.com). Ingo: IMHO it means that the bug was already in the wild. So it would be nice to have a changelog entry for it.
[8 Feb 2011 17:55]
John Russell
Adding to the 3.5.0 change log: The innobackup or mysqlbackup command could create an orphaned table in the backup directory. The file mysql/ibbackup_binlog_marker.ibd was created in the backup directory, but not mysql/ibbackup_binlog_marker.frm. The resulting table mysql.ibbackup_binlog_marker could not be dropped or re-created, which could prevent subsequent backups from succeeding. This condition could occur when a partial backup was created with the --databases option, and the database had multiple tablespaces from the setting --innodb-file-per-table=1. Now, the .frm file for this internally produced table is copied into the backup without the table being specified as part of the --databases argument list.