Bug #6684 ndb_restore doesn't give error messages if inproper command given
Submitted: 17 Nov 2004 16:32 Modified: 18 Nov 2004 20:02
Reporter: Harrison Fisk Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:4.1.7 OS:MacOS (Mac OS X)
Assigned to: Tomas Ulin CPU Architecture:Any

[17 Nov 2004 16:32] Harrison Fisk
Description:
If you give something wrong to ndb_restore, it will just print out the usage without giving any error messages at all.  Without error messages it is extremely hard to figure out what it is wrong and get the program to work.

shell$ ndb_restore --connect="nodeid=3;host=localhost:2200" -n 2 -b 0 --restore_data ~/ndb/BACKUP/BACKUP-0/
Usage: ....       

No idea what is wrong with the above (bad parameter, bad combination of options, etc...)

How to repeat:
Don't give an exactly correct syntax to ndb_restore.
Notice it only gives the Usage error message.

Suggested fix:
Make it output a better (any) error message before giving the usage.
[18 Nov 2004 7:30] Tomas Ulin
All option handling has changed in 4.1.8 to use mysql my_getopts.

Can you please try with 4.1.8 and see if you have the same problem?
[18 Nov 2004 20:02] Tomas Ulin
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 bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html