Bug #32896 | ndb_mgmd (and therefore the whole cluster) does not work properly on FreeBSD 7 | ||
---|---|---|---|
Submitted: | 1 Dec 2007 17:53 | Modified: | 19 Feb 2009 20:02 |
Reporter: | Attila Nagy | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S1 (Critical) |
Version: | 5.1.22-rc | OS: | FreeBSD (7.0) |
Assigned to: | Hartmut Holzgraefe | CPU Architecture: | Any |
Tags: | cluster, freebsd, FreeBSD 7, MySQL, ndb, ndb_mgmd |
[1 Dec 2007 17:53]
Attila Nagy
[4 Dec 2007 0:22]
Marek Biela
Similar problem attempting to run 3 node MySQL cluster with MySQL 5.1.22-rc on 64 bit FreeBSD 7.0-BETA3-p1 amd64. I compiled MySQL with this set of flags: BUILD_OPTIMIZED=yes WITH_NDB=yes WITH_OPENSSL=yes WITH_CHARSET=utf8 Management node initially starts fine. I am able to start first NDB node and see it connecting to Management node (via ndb_mgm run either from Management or NDB node). However, when second NDB node starts successfully?, I am losing ability to use ndb_mgm tool. I get time out error from ndb_mgm CLI: "Unable to get status from management server 60: error Time out talking to management server" I also find "setEventReportingLevelImpl: failed 2!" error in Management server ndb_1_out.log log. Other log, ndb_1_cluster.log, contains no errors, warning or alerts, but I surely can submit it if needed. I have no connectivity problem between servers, and I am able to telnet to default port 1186 on Management server. MySQL node fails to start "ndbcluster" option stating: "Configuration error: Error : Timeout talking to management node Plugin 'ndbcluster' init funtion return error Plugin 'ndbcluster' registration as a STORAGE ENGINE failed" and I see no "ndbcluster" when issuing MySQL "show engines;" query MySQL cluster works well when I downgraded MySQL to 5.0.45_1. I used the same version of OS and cluster configuration files. Only thing different was MySQL compilation flags, that were "BUILD_OPTIMIZED=yes WITH_NDB=yes". Regards, Marek Biela
[13 Dec 2007 14:49]
Hartmut Holzgraefe
Verified on FreeBSD 7. Maybe another duplicate of http://bugs.mysql.com/bug.php?id=31761 due to GCC 4.2.x optimizations gone wild on the server code ... Testing with different compile flags now ...
[14 Dec 2007 12:13]
Attila Nagy
No, it's not a duplicate. I've tested that setting different compiler flags, or switching back to gcc 3.4 doesn't help. BTW, I've found the cause: FreeBSD 7 has a new threading code (called libthr, while the other was libkse). If I compile libkse (it doesn't get built automaticaly) and map libthr to it for ndb_mgmd, everything works fine. So an entry in /etc/libmap.conf: [/usr/local/libexec/ndb_mgmd] libthr.so.3 libkse.so.3 Helps. Of course this is not a real fix, just a silly workaround.
[19 Feb 2009 20:02]
Hartmut Holzgraefe
Latest MySQL Cluster 6.3.22 works just fine on FreeBSD 7.0 with libthr.so.3