[MDEV-7376] Removal of the tool "mysql_zap" Created: 2014-12-26 Updated: 2016-02-19 Resolved: 2015-11-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Fix Version/s: | 10.2.0 |
| Type: | Task | Priority: | Minor |
| Reporter: | Jean Weisbuch | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | script | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.2.0-1 | ||||||||
| Description |
|
MariaDB 10.1 still ships the tool "mysql_zap.sh" on the "scripts/" directory. The way the script match the processes it needs to kill isnt clean (using the output of a "ps" command), it outputs an stty error message when executed, doesnt output any warning after trying to kill processes the user doesnt own and waits at least 2 seconds after each kills which renders it unpractical. The script doesnt seems to be called at any point on the MariaDB sources, doesnt do any MariaDB related job and is most probably not used anymore. |
| Comments |
| Comment by Sergey Vojtovich [ 2015-11-19 ] |
|
serg, please review patch for this task. Did monty agree with this clean-up? |
| Comment by Sergei Golubchik [ 2015-11-24 ] |
|
I don't think I need to review it, push when you're think it's ok. |
| Comment by Michael Widenius [ 2016-01-14 ] |
|
Just a note: A important distinction between pkill and mysql_zap is that mysql_zap kills the server 'gently' first (with signal 15) and only if the server doesn't die in a limited time then tries -9. To use pkill one must run it twice; pkill --signal 15 mysqld ; sleep(10) ; pkill -f --signal 9 pattern So in the end, pkill is more cumbersome and slower to use than mysql_zap to kill the mysqld server. |