Merge lp:~tplavcic/percona-server/ps-bld-228-5.1 into lp:percona-server/5.1
Status: | Merged |
---|---|
Approved by: | Laurynas Biveinis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 626 |
Proposed branch: | lp:~tplavcic/percona-server/ps-bld-228-5.1 |
Merge into: | lp:percona-server/5.1 |
Diff against target: |
22 lines (+8/-2) 1 file modified
build/debian/percona-server-server-5.1.mysql.init (+8/-2) |
To merge this branch: | bzr merge lp:~tplavcic/percona-server/ps-bld-228-5.1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+243775@code.launchpad.net |
Description of the change
Debian init script (start) has hardcoded wait for 14sec and if the server is not pingable in that time it fails - which is not good in some cases.
Change has been made to wait forever and exit if server responds to ping and also after first 10 sec start to check for pid also and if it doesn't exists then we assume server died and fail.
Testing has been done for 5.5 and 5.6 using packages from main repo and just replaced with the new init script.
PS 5.5 - ubuntu 14.04
= looks ok
=======
vagrant@
* Starting MySQL (Percona Server) database server mysqld
...done.
* Checking for corrupt, not cleanly closed and upgrade needing tables.
vagrant@
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.5.40-36.1 Percona Server (GPL), Release 36.1, Revision 707
Copyright (c) 2009-2014 Percona LLC and/or its affiliates
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit;
Bye
vagrant@
* Stopping MySQL (Percona Server) mysqld
...done.
PS 5.5 - ubuntu 14.04 - simulated server not started by commenting mysqld_safe
= script waited 10 sec to check for pid and then failed
=======
vagrant@
* Starting MySQL (Percona Server) database server mysqld
...fail!
vagrant@
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/
PS 5.6 - ubuntu 14.04
= looks ok
=======
vagrant@
* Starting MySQL (Percona Server) database server mysqld
...done.
* Checking for corrupt, not cleanly closed and upgrade needing tables.
vagrant@
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 45
Server version: 5.6.21-70.1 Percona Server (GPL), Release 70.1, Revision 698
Copyright (c) 2009-2014 Percona LLC and/or its affiliates
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit;
Bye
vagrant@
* Stopping MySQL (Percona Server) mysqld
...done.
PS 5.6 - ubuntu 14.04 - simulated server not started by commenting mysqld_safe
= script waited 10 sec to check for pid and then failed
=======
vagrant@
* Starting MySQL (Percona Server) database server mysqld
...fail!
vagrant@
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/
Was 5.1 tested too? The description mentions 5.5 and 5.6