Bug #33866 | Test 'ndb_config' has different result | ||
---|---|---|---|
Submitted: | 14 Jan 2008 17:05 | Modified: | 15 Apr 2010 14:13 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
Version: | mysql-5.1 | OS: | Any |
Assigned to: | Magnus Blåudd | CPU Architecture: | Any |
Tags: | 5.0 + 5.1 |
[14 Jan 2008 17:05]
Joerg Bruehe
[3 Feb 2008 21:05]
Jonas Oreland
it looks like localhost != 127.0.0.1
[14 Apr 2010 9:29]
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/105613
[14 Apr 2010 9:44]
Bugs System
Pushed into 5.1.44-ndb-7.0.15 (revid:magnus.blaudd@sun.com-20100414092831-oh31f8h1g4wfhkxz) (version source revid:magnus.blaudd@sun.com-20100414092831-oh31f8h1g4wfhkxz) (merge vers: 5.1.44-ndb-7.0.15) (pib:16)
[14 Apr 2010 9:47]
Magnus Blåudd
Pushed to 7.0.15 and 7.1.4
[15 Apr 2010 12:33]
Magnus Blåudd
The problem occured when localhost was used in config.ini which ndb_config then converted to a binary config and filtered to return only those hosts at 127.0.0.1. Since the filtering compares the resolved value of localhost with resolved value of 127.0.0.1(which always resolves to 127.0.0.1) it will fail if localhost is not resolving to 127.0.0.1. This problem was reproduced on a normal linux machine as well by editing /etc/hosts to return 127.0.0.2 for localhost.
[15 Apr 2010 14:13]
Jon Stephens
There's no change in behaviour as such to be documented (thus no changelog entry), but after discussing with Magnus, I've added the following note to the description of ndb_config --host: While the hostname localhost usually resolves to the IP address 127.0.0.1, this may not necessarily be true for all operating platforms and configurations. This means that it is possible, when localhost is used in config.ini, for ndb_config --host=localhost to fail if ndb_config is run on a different host where localhost resolves to a different address (for example, on some versions of SUSE Linux, this is 127.0.0.2). In general, for best results, you should use numeric IP addresses for all MySQL Clustewr configuration values relating to hosts, or verify that all MySQL Cluster hosts handle localhost in the same fashion. Closed.