[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2011-09-19 Thread Ubuntu QA's Bug Bot
** Tags added: testcase -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in Ubuntu. https://bugs.launchpad.net/bugs/620441 Title: MySQL upstart stop job does not cleanly shutdown mysql To manage notifications about thi

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-16 Thread Robert Citek
Had some issues getting changes in mysql's upstart script from taking effect. This demonstrates the issue, using the respawn command as the example, and a solution. $ grep respawn /etc/init/mysql.conf respawn $ sudo mysqladmin status ; sudo mysqladmin shutdown ; sudo mysqladmin status ; sleep

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-16 Thread Robert Citek
We got bitten by this bug and are now checking tables on our DBs. What's interesting is that we made changes to the mysql upstart script but they do not seem to be taking effect. In particular: 1) changes to the kill timeout. Changing the value to 300 had no effect. Even after issuing an "initc

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-09 Thread Launchpad Bug Tracker
This bug was fixed in the package mysql-dfsg-5.1 - 5.1.41-3ubuntu12.8 --- mysql-dfsg-5.1 (5.1.41-3ubuntu12.8) lucid-proposed; urgency=low * raising kill timeout to 300 to help avoid table corruption (LP: #620441) -- Clint ByrumSat, 20 Nov 2010 12:06:00 -0800 ** Changed in: mys

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-06 Thread Martin Pitt
** Tags added: verification-done ** Tags removed: verification-needed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. https://bugs.launchpad.net/bugs/620441 Title: MySQL upstart stop job does not cleanly shu

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-05 Thread Imre Gergely
I tried it with a simplified test case with just DELETEing a lot of data from the table with 1.5mil rows. The DELETE command took like a minute and a half to return. After it returned, I immediately did 'stop mysql' and saw the KILL message in the daemon.log after ~5 seconds. After I started mys

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-03 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/lucid-proposed/mysql-dfsg-5.1 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. https://bugs.launchpad.net/bugs/620441 Title: MySQL upstart stop job does not cleanly shutdown mysql

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-03 Thread Martin Pitt
Accepted mysql-dfsg-5.1 into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Tags added: verification-neede

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-12-01 Thread Bryce Harrington
Sponsored upload of SRU patch to lucid-proposed ** Changed in: mysql-dfsg-5.1 (Ubuntu Lucid) Status: Triaged => Fix Committed ** Changed in: mysql-dfsg-5.1 (Ubuntu Lucid) Assignee: (unassigned) => Clint Byrum (clint-fewbar) -- MySQL upstart stop job does not cleanly shutdown mysql h

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-11-22 Thread Martin Pitt
SRU ack, please upload. -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-11-21 Thread Clint Byrum
paukaija, thanks for the reminder, I just subscribed ubuntu-sru -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. --

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-11-20 Thread papukaija
Should ubuntu-sru be subscribed to this bug report? -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-serv

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-11-20 Thread Clint Byrum
** Description changed: Release: Ubuntu 10.04 LTS Package Version: 5.1.41-3ubuntu12.6 Stopping a MySQL server can take some time, especially on a busy database. If mysqld gets killed while having open connections, then after the next start you will likely have a lot of tables corrupt

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-11-20 Thread Launchpad Bug Tracker
** Branch linked: lp:~clint-fewbar/ubuntu/lucid/mysql-dfsg-5.1/increase- killtimeout -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfs

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-19 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/mysql-5.1 -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-server-bugs mailin

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-15 Thread Mathias Gug
This bug should probably be backported to lucid as well. Accepting lucid nomination. To move the SRU forward, the next step is to prepare a SRU report as outlined in https://wiki.ubuntu.com/StableReleaseUpdates#Procedure. ** Changed in: mysql-dfsg-5.1 (Ubuntu Maverick) Status: In Progress

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-15 Thread Mathias Gug
** Changed in: mysql-dfsg-5.1 (Ubuntu Maverick) Assignee: (unassigned) => Clint Byrum (clint-fewbar) ** Changed in: mysql-dfsg-5.1 (Ubuntu Maverick) Status: Confirmed => In Progress -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You r

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-14 Thread Clint Byrum
This is awaiting sponsorship, please see the merge proposal. ** Tags added: patch -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-09 Thread Thierry Carrez
+1 -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubu

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-08 Thread Clint Byrum
** Changed in: mysql-dfsg-5.1 (Ubuntu Maverick) Status: Triaged => Confirmed ** Changed in: mysql-dfsg-5.1 (Ubuntu Maverick) Assignee: Clint Byrum (clint-fewbar) => (unassigned) -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You recei

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-08 Thread Clint Byrum
Ultimately, I believe what Johan stated previously is correct. If your mysql daemon is not stopping when you tell it to shutdown, then you should be concerned. I've pushed a branch up now that raises kill timeout to 300 seconds. 5 minutes should be long enough for most databases to finish flushin

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-08 Thread Launchpad Bug Tracker
** Branch linked: lp:~clint-fewbar/ubuntu/maverick/mysql-5.1/increase- killtimeout -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-02 Thread Clint Byrum
In doing research for this fix, I'm having trouble finding a set of best practices for upstart jobs in Ubuntu. If anyone has a link or list of them, please do post here, as I am a bit confused about how to interact with the user. console output seems a hacky way (user may not have console if ssh'in

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-02 Thread Scott James Remnant
** Changed in: upstart Status: New => Invalid -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-ser

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-09-02 Thread Thierry Carrez
** Tags added: server-mrs -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-server-bugs mailing list Ubunt

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-26 Thread papukaija
** Tags added: lucid -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-ser

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-26 Thread Thierry Carrez
** Changed in: mysql-dfsg-5.1 (Ubuntu) Assignee: (unassigned) => Clint Byrum (clint-fewbar) ** Also affects: mysql-dfsg-5.1 (Ubuntu Maverick) Importance: High Assignee: Clint Byrum (clint-fewbar) Status: Triaged -- MySQL upstart stop job does not cleanly shutdown mysql https:

Re: [Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-24 Thread Clint Byrum
On Aug 24, 2010, at 1:22 PM, Johan Kiviniemi wrote: >> Would there be an indication anywhere for users that they're waiting > on mysql to die? > > The ‘stop’ command having not returned yet, and ‘status jobname’ saying > ‘stopping’. > > If a bug in a service causes a stop request not to stop it

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-24 Thread Johan Kiviniemi
> Would there be an indication anywhere for users that they're waiting on mysql to die? The ‘stop’ command having not returned yet, and ‘status jobname’ saying ‘stopping’. If a bug in a service causes a stop request not to stop it, the service should be fixed. As for the pseudocode, I don’t thin

Re: [Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-24 Thread Clint Byrum
On Aug 24, 2010, at 9:50 AM, Scott James Remnant wrote: > On Tue, 2010-08-24 at 16:23 +, Clint Byrum wrote: > >> Can we abort the stop from pre-stop somehow? Otherwise I'm afraid users >> will either be left waiting forever, or still sending SIGKILL. >> > You can call "start" from the pre-s

Re: [Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-24 Thread Scott James Remnant
On Tue, 2010-08-24 at 16:23 +, Clint Byrum wrote: > Can we abort the stop from pre-stop somehow? Otherwise I'm afraid users > will either be left waiting forever, or still sending SIGKILL. > You can call "start" from the pre-stop script, which will return the job to a running state. That bei

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-24 Thread Clint Byrum
Scott, thanks for the suggestion, I hadn't thought of anything like that. Can we abort the stop from pre-stop somehow? Otherwise I'm afraid users will either be left waiting forever, or still sending SIGKILL. -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bu

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-24 Thread Scott James Remnant
You can use a "pre-stop" script/exec to send the proper command to stop mysql and to wait for it to shut down. -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-23 Thread Clint Byrum
upstart definitely needs a way to disable the SIGKILL functionality. setting kill timeout 0 Just means instantly kill it, don't even wait for the SIGTERM. Definitely not the desired behavior. So this is really a feature request for upstart more than anything. To be clear, upstart should allow d

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-23 Thread Clint Byrum
** Also affects: upstart Importance: Undecided Status: New -- MySQL upstart stop job does not cleanly shutdown mysql https://bugs.launchpad.net/bugs/620441 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-19 Thread Folke Lemaitre
Actually the SIGKILL is really always a no go unless a sysadmin decides to do this manually. An upstart script should never do this automatically (not even as a feature ;-) ) I can guarantee that in more than 90% of the cases after a SIGKILL you will have corrupted tables. With the default config o

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-19 Thread Clint Byrum
Scott, I've experienced problems with SIGKILL's corrupting mysql databases before, so the workaround given might be a little misleading. MySQL can actually be stuck waiting on a single query to finish before it can shut down, and some queries might take *hours*. That said, its a known tradeoff if

[Bug 620441] Re: MySQL upstart stop job does not cleanly shutdown mysql

2010-08-19 Thread Scott Moser
Thank you for your complete bug report. It would seem this can be fixed in the upstart job with a line like 'kill timeout 300'. From man 5 init: | kill timeout INTERVAL | Specifies the interval between sending the job's main process |the SIGTERM and SIGKILL signals when st