Bug #77388 Faulty comment describing ndb_mgm_node_state.connect_address in mgmapi.h
Submitted: 17 Jun 2015 10:11 Modified: 22 Jun 2015 15:36
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.0 OS:Any
Assigned to: CPU Architecture:Any

[17 Jun 2015 10:11] Magnus Blåudd
Description:
In mgmapi.h the struct ndb_mgm_node_state is defined and describes the status you can fetch for one node connected to the cluster. The connect_address member of the struct has a comment saying that you get the IP address returned is tha value when the node connected to ndb_mgmd. That is not true, the value is fetched from TransporterRegistry, either the local one when asking about ndb_mgmd or ndbd and from a connected ndbd node when asking about an Api node.

How to repeat:
MCI

Suggested fix:
Remove or rewrite the "Note" part of the comment.
[22 Jun 2015 15:36] Jon Stephens
Fixed in NDB 7.5.0. Not really a user-visible change, so no changelog entry is needed for this.

However, there is documentation at 
http://dev.mysql.com/doc/ndbapi/en/mgm-ndb-mgm-node-state.html 
that's based on the old/wrong comments in mgmapi.h, and this has been corrected.

Closed.