Bug #58247 | ndb_mgm_bindaddress produces errors on stdout; errno/errmsg incorrect | ||
---|---|---|---|
Submitted: | 17 Nov 2010 8:30 | ||
Reporter: | Geert Vanderkelen | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Cluster: NDB API | Severity: | S3 (Non-critical) |
Version: | mysql-5.1-telco-7.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | mgmapi |
[17 Nov 2010 8:30]
Geert Vanderkelen
[15 Dec 2010 12:22]
Hartmut Holzgraefe
There are also other places in storage/ndb/src/mgmapi/mgmapi.cpp that directly print error messages. In ndb_mgm_connect() this is controlled by setting the 'verbose' parameter to !=0, but other functions like ndb_mgm_bindaddress, ndb_mgm_call, etc. print to handle->errstream unconditionally. Regarding the 1012 error code: this is the MGMAPI code for NDB_MGM_BIND_ADDRESS and the setError() call supposed to set the error string looks correct to me: setError(handle, NDB_MGM_BIND_ADDRESS, __LINE__, "Unable to bind local address '%s:0' errno: %d, errno: %d, " "while trying to connect with connect string: '%s:%d'\n", bind_address, err, errno, hostname, port); No idea why ndb_mgm_get_latest_error_msg() does not return anything useful here For a list of MGMAPI error codes see storage/ndb/include/mgmapi/mgmapi_error.h