Bug #44182 ndb_mgm hangs on the command line with mac os x
Submitted: 9 Apr 2009 9:33 Modified: 9 Apr 2009 9:45
Reporter: Johan Andersson Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.0 OS:MacOS (10.5)
Assigned to: CPU Architecture:Any
Tags: Mac OS X, NDB_MGM

[9 Apr 2009 9:33] Johan Andersson
Description:
Management client hangs when using the command line:

perch:bin johan$ ./ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> all status
Warning, event thread startup failed, degraded printouts as result, errno=36

But using "-e" option works

perch:bin johan$ ./ndb_mgm -e "all status"
Connected to Management Server at: localhost:1186
Node 2: started (mysql-5.1.32 ndb-7.0.4)
Node 3: started (mysql-5.1.32 ndb-7.0.4)

perch:bin johan$ ./ndb_mgm -e "show"
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)]	2 node(s)
id=2	@127.0.0.1  (mysql-5.1.32 ndb-7.0.4, Nodegroup: 0, Master)
id=3	@127.0.0.1  (mysql-5.1.32 ndb-7.0.4, Nodegroup: 0)

[ndb_mgmd(MGM)]	1 node(s)
id=1	@127.0.0.1  (mysql-5.1.32 ndb-7.0.4)

[mysqld(API)]	6 node(s)
id=4	@127.0.0.1  (mysql-5.1.32 ndb-7.0.4)
id=5	@127.0.0.1  (mysql-5.1.32 ndb-7.0.4)
id=6 (not connected, accepting connect from localhost)
id=7 (not connected, accepting connect from localhost)
id=8 (not connected, accepting connect from localhost)
id=9 (not connected, accepting connect from localhost)

How to repeat:
see above

Suggested fix:
fix so it does not hang
[9 Apr 2009 9:35] Jonas Oreland
what does "perror 36" show on macosx ? (or more specifically the computer
that you use)

/Jonas
[9 Apr 2009 9:38] Alexander Yu
A workaround is to start with a numeric ip: ndb_mgm -c 127.0.0.1
[9 Apr 2009 9:45] Bernd Ocklin
Duplicate with http://bugs.mysql.com/bug.php?id=35751