Bug #41512 ndb_print_backup_file does not work?
Submitted: 16 Dec 2008 15:08 Modified: 10 Mar 2010 9:30
Reporter: Alexander Yu Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:mysql-5.1-telco-6.3 OS:Linux ( 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux)
Assigned to: Jonas Oreland CPU Architecture:Any
Tags: 6.3.17, 6.3.20, Backup, ndb

[16 Dec 2008 15:08] Alexander Yu
Description:
Trying to examine backup file using ndb_print_backup_file on mysql-5.1.27 ndb-6.3.17

On linux:

$ ndb_print_backup_file BACKUP-6-0.2.Data 
false: 225
Aborted

On OS X 10.5.6 the dump is

false: 226
Abort trap

How to repeat:
$ ndb_mgm -e 'start backup'
Connected to Management Server at: localhost:1186
Waiting for completed, this may take several minutes
Node 2: Backup 6 started from node 1
Node 2: Backup 6 started from node 1 completed
 StartGCP: 9321 StopGCP: 9324
 #Records: 5376 #LogRecords: 0
 Data: 744036 bytes Log: 0 bytes

$ ndb_print_backup_file BACKUP-6/BACKUP-6-0.2.Data 
false: 225
Aborted

$ ndb_print_backup_file BACKUP-6/BACKUP-6-2.ctl 
false: 225
Aborted

$ ndb_print_backup_file BACKUP-6/BACKUP-6-2.log 
false: 225
Aborted
[16 Dec 2008 17:12] Sveta Smirnova
Thank you for the report.

Verified as described.
[16 Dec 2008 17:13] Sveta Smirnova
Bug is not repeatable with 5.1-main tree
[18 Dec 2008 10:20] Jonas Oreland
i didnt even know that we shipped this tool.
i would set it
D4/W1/I5, especially note the I-value, 
why would *anyone* use this tool now that we have print-functionallity in ndb_restore

i think we should just remove the tool from the distribution and say "won't fix" on this (but keep the code for debugging only purposes)

however if we anyway decide to fix it, i would say
R1, E3
[9 Mar 2010 14:24] 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/102722

3133 Jonas Oreland	2010-03-09
      ndb - ndb_print_backup - bug#48673, bug#41512 - adopt to azio changes
[9 Mar 2010 15:27] Jonas Oreland
pushed to 6.3.33, and 7.0.14
[10 Mar 2010 9:30] Jon Stephens
Documented fix in the NDB-6.3.33 and 7.0.14 changelogs as follows:

        The ndb_print_backup_file utility failed to work, due to a
        previous internal change in the NDB code.

Closed.