]> review.fuel-infra Code Review - packages/trusty/rabbitmq-server.git/commitdiff
Backport upstream fix for management plugin 94/14594/2
authorAlexey Lebedeff <alebedev@mirantis.com>
Thu, 10 Dec 2015 16:40:38 +0000 (19:40 +0300)
committerAlexey Lebedeff <alebedev@mirantis.com>
Fri, 11 Dec 2015 11:32:23 +0000 (14:32 +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/changelog
debian/patches/fix-management-startup-after-split.diff [new file with mode: 0644]
debian/patches/series

index 83a7f5288360ab4cfc0c3dee91f547d98de4e0ff..2ee9d6178107228f490adb5d8f2d9edc19ee04e2 100644 (file)
@@ -1,3 +1,9 @@
+rabbitmq-server (3.5.6-1~u14.04+mos3) mos8.0; urgency=medium
+
+  * Backport https://github.com/rabbitmq/rabbitmq-management/pull/84
+
+ -- Alexey Lebedeff <alebedev@mirantis.com>  Fri, 11 Dec 2015 14:31:08 +0300
+
 rabbitmq-server (3.5.6-1~u14.04+mos2) mos8.0; urgency=medium
 
   * Backport https://github.com/rabbitmq/rabbitmq-common/pull/18
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