summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiana Corbacho <diana@rabbitmq.com>2016-08-24 09:12:50 +0100
committerDiana Corbacho <diana@rabbitmq.com>2016-08-24 09:12:50 +0100
commit484db84679351fd7137aadcd1d9083750490194a (patch)
tree462bebc4c39a6f66155b85fd01d9c34d8aca02b0 /src
parentedf5d7527fcc8aba9707584adbece681e7d10f04 (diff)
downloadrabbitmq-server-git-484db84679351fd7137aadcd1d9083750490194a.tar.gz
Handle late autoheal_finished message
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_autoheal.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rabbit_autoheal.erl b/src/rabbit_autoheal.erl
index 56551ca885..9d6bfff5fc 100644
--- a/src/rabbit_autoheal.erl
+++ b/src/rabbit_autoheal.erl
@@ -291,6 +291,14 @@ handle_msg({autoheal_finished, Winner}, not_healing, _Partitions)
%% We are the leader and the winner. The state already transitioned
%% to "not_healing" at the end of the autoheal process.
rabbit_log:info("Autoheal finished according to winner ~p~n", [node()]),
+ not_healing;
+
+handle_msg({autoheal_finished, Winner}, not_healing, _Partitions) ->
+ %% We might have seen the winner down during a partial partition and
+ %% transitioned to not_healing. However, the winner was still able
+ %% to finish. Let it pass.
+ rabbit_log:info("Autoheal finished according to winner ~p."
+ " Unexpected, I might have previously seen the winner down~n", [Winner]),
not_healing.
%%----------------------------------------------------------------------------