[Bug 688541] Re: race condition on shutdown (leads to corrupted fs)

Clint Byrum clint at fewbar.com
Wed Nov 30 19:49:54 UTC 2011


So, I believe the right way to handle this is to wait a long time for
any upstart job that has status of 'stop/killed'.

We can't be finding all of the "services that are slow to shutdown" one
by one. Authors of upstart jobs will know how long to wait before
sending kill -9. Once kill -9 has been sent, the job's state actually
changes to post-stop, so sendsigs wouldn't wait any longer anyway, but
we should cap it at something longer than 10 seconds. I would suggest 5
minutes.

Anyway, because of this, I don't think we should just fix this in mysql,
we should fix it in sysvinit. However until its fixed in sysvinit, I'll
change mysql's stop on to be 'stop on starting rc RUNLEVEL...'

** Changed in: mysql-5.1 (Ubuntu)
     Assignee: Canonical Foundations Team (canonical-foundations) => Clint Byrum (clint-fewbar)

** Changed in: mysql-5.1 (Ubuntu)
       Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.1 in Ubuntu.
https://bugs.launchpad.net/bugs/688541

Title:
  race condition on shutdown (leads to corrupted fs)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/688541/+subscriptions



More information about the Ubuntu-server-bugs mailing list