summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2014-12-10 18:10:59 +0100
committerJean-Sebastien Pedron <jean-sebastien@rabbitmq.com>2014-12-10 18:10:59 +0100
commit08b91401b6f1d61ec982880889800c408001b5a9 (patch)
treebedeb5065aed67ffbb0e6602a7d52bb637bb44fb /src
parent07d93ab1916933c4663f10f91fa705e02e5c7cf0 (diff)
downloadrabbitmq-server-git-08b91401b6f1d61ec982880889800c408001b5a9.tar.gz
Add more information to the 'about_to_heal' state explanations
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_autoheal.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rabbit_autoheal.erl b/src/rabbit_autoheal.erl
index 7089911c32..8a5614ae13 100644
--- a/src/rabbit_autoheal.erl
+++ b/src/rabbit_autoheal.erl
@@ -55,12 +55,16 @@
%% before telling them they can restart
%%
%% about_to_heal
-%% - we are the leader, and have already assigned the winner and losers.
-%% We are part of the losers and we wait for the winner_is announcement.
+%% - we are the leader, and have already assigned the winner and
+%% losers. We are part of the losers and we wait for the winner_is
+%% announcement. This leader-specific state differs from not_healing
+%% (the state other losers are in), because the leader could still
+%% receive request_start messages: those subsequent requests must be
+%% ignored.
%%
%% {leader_waiting, OutstandingStops}
%% - we are the leader, and have already assigned the winner and losers.
-%% We are neither but need to ignore further requests to autoheal.
+%% We are neither but need to ignore further requests to autoheal.
%%
%% restarting
%% - we are restarting. Of course the node monitor immediately dies