]> review.fuel-infra Code Review - packages/trusty/rabbitmq-server.git/commitdiff
Backport upstream fix for management plugin 92/14592/1
authorAlexey Lebedeff <alebedev@mirantis.com>
Thu, 10 Dec 2015 16:40:38 +0000 (19:40 +0300)
committerAlexey Lebedeff <alebedev@mirantis.com>
Thu, 10 Dec 2015 16:40:38 +0000 (19:40 +0300)
https://github.com/rabbitmq/rabbitmq-management/pull/84

Without this fix node may fail to start after network split.

Change-Id: I901055ea89b88edbbfa5350186ce3ad2d4bc71fb
Closes-Bug: #1513511

debian/patches/fix-management-startup-after-split.diff [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-management-startup-after-split.diff b/debian/patches/fix-management-startup-after-split.diff
new file mode 100644 (file)
index 0000000..252e893
--- /dev/null
@@ -0,0 +1,20 @@
+Description: Backport management plugin fix
+ Backport management plugin fix for bug that prevented node from starting after network split.
+Author: Alexey Lebedeff <alebedev@mirantis.com>
+Origin: backport, https://github.com/rabbitmq/rabbitmq-management/pull/84
+Bug: https://github.com/rabbitmq/rabbitmq-management/issues/81
+Applied-Upstream: 3.5.7
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/plugins-src/rabbitmq-management/src/rabbit_mgmt_sup_sup.erl
++++ b/plugins-src/rabbitmq-management/src/rabbit_mgmt_sup_sup.erl
+@@ -57,7 +57,8 @@ start_child() -> supervisor2:start_child
+ %%----------------------------------------------------------------------------
+ init([]) ->
+-    {ok, {{one_for_one, 0, 1}, [sup()]}}.
++    timer:apply_after(0, ?MODULE, start_child, []),
++    {ok, {{one_for_one, 0, 1}, []}}.
+ sup() ->
+     {rabbit_mgmt_sup, {rabbit_mgmt_sup, start_link, []},
index a2227a7859c0879a74b56ae56a38c3433e1c64b1..f735084e098ec72d51cbbfdb021e0a3c711e421e 100644 (file)
@@ -1 +1,2 @@
 fix-pmon-demonitor-function.diff
+fix-management-startup-after-split.diff