Merge ~sergiodj/ubuntu/+source/rabbitmq-server:bug1784757-fix-server-restart-hang into ubuntu/+source/rabbitmq-server:ubuntu/bionic-devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Bryce Harrington | ||||
Approved revision: | 7c060ba77e6db5d81490e90c4630c9955aa7eb77 | ||||
Merged at revision: | 7c060ba77e6db5d81490e90c4630c9955aa7eb77 | ||||
Proposed branch: | ~sergiodj/ubuntu/+source/rabbitmq-server:bug1784757-fix-server-restart-hang | ||||
Merge into: | ubuntu/+source/rabbitmq-server:ubuntu/bionic-devel | ||||
Diff against target: |
58 lines (+17/-3) 3 files modified
debian/changelog (+11/-0) debian/control (+1/-0) debian/rabbitmq-server.service (+5/-3) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Ehrhardt (community) | Approve | ||
Canonical Server | Pending | ||
Review via email: mp+387177@code.launchpad.net |
Description of the change
The systemd file rabbitmq-
Although I was able to reproduce this almost 100% of the time, there were rare occasions when the restart procedure finished normally. I was also only able to reproduce it using a bionic VM, not a container. If you have multipass or lxd configured to launch VMs, that should be easy.
The steps are:
$ lxc launch ubuntu-daily:bionic --vm bug1784757-rabbitmq-server # or use multipass
$ lxc shell bug1784757-rabbitmq-server
# apt update
# apt install rabbitmq-server -y
# systemctl restart rabbitmq-
In a normal scenario, the restart should take around 3 seconds or less. With the bug, it takes around 90 seconds. If you can't reproduce it, try running "systemctl restart" again. A quick way to trigger it is to run a for loop like:
# for i in $(seq 10); do time systemctl restart rabbitmq-
The fix to this bug involved cherry picking two commits from the Debian package:
https:/
https:/
The first one was not entirely cherry-picked because it contained unrelated bits.
I also had to add "socat" to the list of dependencies of the package, since rabbitmq-
There is a PPA with the proposed fix here:
https:/
The package doesn't contain dep8 tests, but I made sure it installs correctly and can be restarted without problems.
I'm waiting until https:/ /bugs.launchpad .net/ubuntu/ +source/ rabbitmq- server/ +bug/1874075 migrates before I set this MP to ready.