summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortomyouyou <yxszyn@163.com>2020-01-11 11:06:53 +0800
committerGitHub <noreply@github.com>2020-01-11 11:06:53 +0800
commit791056b2d1f78cc0094f836ceb779fe6a2d00699 (patch)
tree620e8438a45b1df269e020caf063bff3e5677aab /src
parentb3c5fae8fb12b5a194f7f6e652dbb03ebf520817 (diff)
downloadrabbitmq-server-git-791056b2d1f78cc0094f836ceb779fe6a2d00699.tar.gz
Autoheal: loser node may miss the "autoheal_safe_to_start" notification from the winner
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_autoheal.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit_autoheal.erl b/src/rabbit_autoheal.erl
index 77165fc26c..b43fd672d8 100644
--- a/src/rabbit_autoheal.erl
+++ b/src/rabbit_autoheal.erl
@@ -381,6 +381,11 @@ restart_loser(State, Winner) ->
not_healing;
autoheal_safe_to_start ->
State
+ after 60000 ->
+ rabbit_log:warning(
+ "Autoheal: Timed out waiting for autoheal_safe_to_start,
+ winner is ~p; Start and retry autoheal", [Winner]),
+ not_healing
end,
erlang:demonitor(MRef, [flush]),
%% During the restart, the autoheal state is lost so we