[MDEV-6428] [PATCH] MariaDB start script doesn't realize failure of MariaDB startup Created: 2014-07-08 Updated: 2014-07-28 Resolved: 2014-07-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.12 |
| Fix Version/s: | 5.5.39, 10.0.13 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Seunguck Lee | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux testhost 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux |
||
| Description |
|
Startup script(support-files/mysql.server) does not realize failure of MariaDB startup. So Startup script waiting for $service_startup_timeout. [root@testhost mysql]# service mysql start This startup script call wait_for_ready() function after starting mysqld_safe. |
| Comments |
| Comment by Elena Stepanova [ 2014-07-08 ] | |||||||||||||||||||||||||
|
Hi, Are you willing to propose a patch for this? | |||||||||||||||||||||||||
| Comment by Seunguck Lee [ 2014-07-08 ] | |||||||||||||||||||||||||
|
Hi Elena. You already have known this. (I think) ^^. I don't know much about why MariaDB team changed original wait_for_pid to wait_for_ready. below snippet is "wait_for_ready" function I have changed.
Thanks. | |||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2014-07-15 ] | |||||||||||||||||||||||||
It was done in scope of | |||||||||||||||||||||||||
| Comment by Seunguck Lee [ 2014-07-16 ] | |||||||||||||||||||||||||
|
Hi Elena. Then I think checking both of mysqldadmin ping and mysqld_safe process will be working. Thanks. | |||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2014-07-27 ] | |||||||||||||||||||||||||
|
Thanks for the idea. I've applied a slightly different patch:
mainly to avoid using new tools and constructs in the script. Because pgrep -P and if ! are not used in mysql.server yet, but kill -0 is already there, so I didn't add any new potential compatibility issues by reusing it. |