Bug #24105 | ndb_mgm ALL RESTART -i command run with one node stopped stops all data nodes | ||
---|---|---|---|
Submitted: | 8 Nov 2006 21:43 | Modified: | 6 Dec 2006 10:37 |
Reporter: | Jim Dowling | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 5.1.12 | OS: | Linux (Linux) |
Assigned to: | Jonas Oreland | CPU Architecture: | Any |
Tags: | all restart --initial, NDB_MGM, not started |
[8 Nov 2006 21:43]
Jim Dowling
[23 Nov 2006 14:15]
Geert Vanderkelen
I could repeat using the provided steps. I have attached a shell scripts which I used to check this together with the configuration I used. I verified it with 5.1.12 and 5.1.14 from bk. When one node is restarted with the -n option, and you do then a ALL RESTART -i, all the other nodes will be also not started. You have to do an ALL START after this procedure. There is also the problem that ALL RESTART -i is hanging for exactly 5 minutes and it times out giving an illegal reply from server error. Not doing the RESTART -n on one node doesn't give any problems. So I guess there is something wrong when you combine those two commands after each other. Not doing that is a workaround. Here is the output of the shell script: $ ./bug_24105.sh shell> ndb_mgm -e "ALL STATUS" Connected to Management Server at: localhost:1186 Node 3: started (Version 5.1.14) Node 4: started (Version 5.1.14) Node 5: started (Version 5.1.14) Node 6: started (Version 5.1.14) shell> ndb_mgm -e "3 RESTART -n" Connected to Management Server at: localhost:1186 Node 3 is being restarted shell> ndb_mgm -e "ALL STATUS" Connected to Management Server at: localhost:1186 Node 3: not started (Version 5.1.14) Node 4: started (Version 5.1.14) Node 5: started (Version 5.1.14) Node 6: started (Version 5.1.14) [geert@crap 12806]$ vim bug_24105.sh [geert@crap 12806]$ ./bug_24105.sh shell> ndb_mgm -e "ALL STATUS" Connected to Management Server at: localhost:1186 Node 3: started (Version 5.1.14) Node 4: started (Version 5.1.14) Node 5: started (Version 5.1.14) Node 6: started (Version 5.1.14) shell> ndb_mgm -e "3 RESTART -n" Connected to Management Server at: localhost:1186 Node 3 is being restarted shell> ndb_mgm -e "ALL STATUS" Connected to Management Server at: localhost:1186 Node 3: not started (Version 5.1.14) Node 4: started (Version 5.1.14) Node 5: started (Version 5.1.14) Node 6: started (Version 5.1.14) shell> date Thu Nov 23 14:49:29 CET 2006 shell> ndb_mgm -e "ALL RESTART -i" Connected to Management Server at: localhost:1186 Executing RESTART on all nodes. Starting shutdown. This may take a while. Please wait... Restart failed. * 1006: Illegal reply from server * Trying to start all nodes of system. Use ALL STATUS to see the system start-up phases. shell> date Thu Nov 23 14:54:29 CET 2006 shell> ndb_waiter 2>/dev/null 1>&2 shell> ndb_mgm -e "ALL STATUS" Connected to Management Server at: localhost:1186 Node 3: not started (Version 5.1.14) Node 4: not started (Version 5.1.14) Node 5: not started (Version 5.1.14) Node 6: not started (Version 5.1.14)
[23 Nov 2006 14:16]
Geert Vanderkelen
Script for repeating.
Attachment: bug_24105.sh (application/x-shellscript, text), 606 bytes.
[23 Nov 2006 14:16]
Geert Vanderkelen
Cluster configuration used for repeating case.
Attachment: 51bk-quattro-config.ini (application/octet-stream, text), 708 bytes.
[29 Nov 2006 13:11]
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/16100 ChangeSet@1.2332, 2006-11-29 13:10:14+01:00, jonas@perch.ndb.mysql.com +1 -0 ndb - bug#24105 Handle not started nodes correctly (for X restart) i.e dont wait for NF_COMPLETEREP but settle with NODEFAIL_REP
[6 Dec 2006 10:37]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented bugfix in 5.1.14 changelog Reworded synopsis