Bug #33040 | ndb_restore crashes with --print_log | ||
---|---|---|---|
Submitted: | 6 Dec 2007 16:31 | Modified: | 14 Sep 2009 10:22 |
Reporter: | Oli Sennhauser | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
Version: | mysql-5.1-telco-6.3 | OS: | Linux (x86_64 only, 32bit works fine) |
Assigned to: | Martin Skold | CPU Architecture: | Any |
[6 Dec 2007 16:31]
Oli Sennhauser
[6 Dec 2007 17:14]
Hartmut Holzgraefe
Can't reproduce, can you provide the backup files this happened with? The behavior probably depends on the backup contents ...
[19 Dec 2007 13:39]
Oli Sennhauser
Files are uploaded long time ago...
[20 Dec 2007 11:10]
Hartmut Holzgraefe
Works fine on 32bit, crashes on AMD64: gdb backtrace: (gdb) bt #0 0x0000000000489b04 in ndbrecattr_print_formatted (out=@0x77f530, r=@0x7fbfff8e70, f=@0x77d5e0) at ../../../../storage/ndb/include/ndbapi/NdbRecAttr.hpp:346 #1 0x000000000045c7d1 in operator<< (ndbout=@0x77f530, attr=Variable "attr" is not available. ) at restore/Restore.cpp:1367 #2 0x000000000045ca0a in operator<< (ndbout=@0x77f530, logE=@0x7fbfffb008) at restore/Restore.cpp:1412 #3 0x00000000004590a7 in BackupPrinter::logEntry (this=0x785d80, logE=Variable "logE" is not available. ) at ../../../storage/ndb/include/util/NdbOut.hpp:87 #4 0x0000000000452de1 in main (argc=Variable "argc" is not available. ) at restore/restore_main.cpp:982
[9 Jan 2008 2:21]
li zhou
I did test using the ctl and log file uploaded, but didn't reproduct the problem. Can you upload the config.ini file and all backup files. Or you can upload SQL files and i can do a backup then restore it. The process of restore seems ctl file have no problem: ./storage/ndb/tools/ndb_restore -c localhost:9310 --print_log -b 1 -n 15 -m -r /home/zhl/ Backup Id = 1 Nodeid = 15 backup path = /home/zhl/ Opening file '/home/zhl/BACKUP-1.15.ctl' Ndb version in backup files: ndb-6.3.6 Connected to ndb!! Successfully restored table `ser/def/if_settings` Successfully restored table event REPL$ser/if_settings .......................... .......................... Successfully created index `PRIMARY` on `whitelist_in` Successfully created index `inid_access` on `voip_instance_user` Opening file '/home/zhl/BACKUP-1-0.15.Data' Progress reporting degraded output since fstat failed,errno: 9 Failed to read header of data file. Exiting... NDBT_ProgramExit: 1 - Failed Aborted (core dumped)
[10 Jun 2008 16:14]
Hartmut Holzgraefe
reverified with 6.3.14
[30 Oct 2008 14:50]
li zhou
Please try the patch of Bug #40428.
[16 Jan 2009 9:43]
Hartmut Holzgraefe
That patch does indeed seem to fix the problem :)
[30 Apr 2009 13:23]
Jonathan Miller
5.1.22-ndb-6.3.6
[10 Sep 2009 7:19]
Martin Skold
See bug#40428
[14 Sep 2009 10:22]
Jon Stephens
Documented fix and closed; see BUG#40428 for changelog entry.