Bug #40669 | ndb_mgm can not restart ndb_mgmd node | ||
---|---|---|---|
Submitted: | 12 Nov 2008 14:22 | Modified: | 12 Nov 2008 14:52 |
Reporter: | Wen Xiong | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S4 (Feature request) |
Version: | mysql-5.1-telco-7.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Nov 2008 14:22]
Wen Xiong
[12 Nov 2008 14:28]
Wen Xiong
The OS is Sun Solaris.
[12 Nov 2008 14:52]
Magnus BlÄudd
It "works" but you need to disconnect all clients. msvensson@pilot:~/run$ ../install/6.4/bin/ndb_mgm -- NDB Cluster -- Management Client -- ndb_mgm> show Connected to Management Server at: localhost:1186 Cluster Configuration --------------------- [ndbd(NDB)] 1 node(s) id=3 (not connected, accepting connect from localhost) [ndb_mgmd(MGM)] 1 node(s) id=2 @localhost (mysql-5.1.29 ndb-6.4.0) [mysqld(API)] 12 node(s) id=10 (not connected, accepting connect from any host) id=11 (not connected, accepting connect from any host) id=12 (not connected, accepting connect from any host) id=13 (not connected, accepting connect from any host) id=14 (not connected, accepting connect from any host) id=15 (not connected, accepting connect from any host) id=16 (not connected, accepting connect from any host) id=63 (not connected, accepting connect from any host) id=127 (not connected, accepting connect from any host) id=192 (not connected, accepting connect from any host) id=228 (not connected, accepting connect from any host) id=255 (not connected, accepting connect from any host) ndb_mgm> 2 restart The ndb_mgmd now "says": asked to stop 2 which is me Waiting for 2 not started And then when Ctrl-C is hit in ndb_mgm, it will restart: 2008-11-12 15:47:51 [MgmSrvr] INFO -- Shutting down server... 2008-11-12 15:47:55 [MgmSrvr] INFO -- Shutdown complete 2008-11-12 15:47:55 [MgmSrvr] INFO -- Restarting server... But, if there are other mgmapi clients connected(for example a NDB node, mysqld/ndbapi node) it will continue to "hang". To fix this we would need to actively abort all connected clients by closing their sockets. Should be possible and quite similar how mysqld will abort connections after SHUTDOWN command.
[12 Nov 2008 15:01]
Jon Stephens
START/RESTART commands have always worked only with data nodes, and this has long been documented. Ref. http://dev.mysql.com/doc/refman/4.1/en/mysql-cluster-mgm-client-commands.html http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-mgm-client-commands.html http://dev.mysql.com/doc/refman/5.1/en/mysql-cluster-mgm-client-commands.html Hence, this is a feature request rather than a bug, and I have changed the severity to match. While this is quite possibly a "nice to have", I don't agree with "workaround unacceptable" assessment given that it's worked this way for years.