Bug #54613 | Skipping corrupted tables with ndb_restore | ||
---|---|---|---|
Submitted: | 18 Jun 2010 11:05 | Modified: | 13 Dec 2010 2:52 |
Reporter: | Geert Vanderkelen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | mysql-5.1-telco-7.0 | OS: | Any |
Assigned to: | Jonas Oreland | CPU Architecture: | Any |
[18 Jun 2010 11:05]
Geert Vanderkelen
[18 Jun 2010 11:18]
Geert Vanderkelen
bzr diff will follow.. when it's done branching.. A diff using MySQL Cluster 7.1.4b: --- storage/ndb/tools/restore/Restore.cpp 2010-06-18 11:09:01.000000000 +0200 +++ ../mysql-cluster-gpl-7.1.4b/storage/ndb/tools/restore/Restore.cpp 2010-06-09 12:26:00.000000000 +0200 @@ -295,7 +295,7 @@ } if (!markSysTables()) return 0; - if (!fixBlobs() && !ga_skip_unknown_objects) + if (!fixBlobs()) return 0; if(!readGCPEntry()) return 0;
[18 Jun 2010 11:40]
Geert Vanderkelen
Dirty patch using an option which is not supposed to be used for this (and a global!)
Attachment: bug54613_dirty.patch (application/octet-stream, text), 424 bytes.
[3 Dec 2010 9:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/125899 3359 Jonas Oreland 2010-12-03 ndb - bug#54613 - add new option --skip-broken-object that allows ndb_restore to carry on even if finding corrupt tables in backup file (currently it only handles case with missing blob-tables)
[3 Dec 2010 9:32]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/125904 3359 Jonas Oreland 2010-12-03 ndb - bug#54613 - add new option --skip-broken-object that allows ndb_restore to carry on even if finding corrupt tables in backup file (currently it only handles case with missing blob-tables)
[3 Dec 2010 9:47]
Bugs System
Pushed into mysql-5.1-telco-6.3 5.1.51-ndb-6.3.40 (revid:jonas@mysql.com-20101203092944-gk7c8777qj1gycu0) (version source revid:jonas@mysql.com-20101203092944-gk7c8777qj1gycu0) (merge vers: 5.1.51-ndb-6.3.40) (pib:23)
[3 Dec 2010 9:48]
Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.51-ndb-7.0.21 (revid:jonas@mysql.com-20101203093645-6k4l9nmu50xz7zbv) (version source revid:jonas@mysql.com-20101203093645-6k4l9nmu50xz7zbv) (merge vers: 5.1.51-ndb-7.0.21) (pib:23)
[3 Dec 2010 12:44]
Jonas Oreland
pushed to 6.3.40, 7.0.21 and 7.1.10
[13 Dec 2010 2:52]
Jon Stephens
Documented in the NDB-6.3.40, 7.0.21, and 71.10 changelogs as follows: Added the --skip-broken-objects option for ndb_restore. This option causes ndb_restore to ignore tables corrupted due to missing blob parts tables, and to continue reading from the backup file and restoring the remaining tables. Also updated ndb_restore description and related portions of Cluster docs with info about the new option. Closed.