Skip to content

Commit 416b25d

Browse files
committed
Check partitions before calling autoheal
The inconsistent event might not have been received yet
1 parent 7f16996 commit 416b25d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/rabbit/src/rabbit_autoheal.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ process_down(_, State) ->
200200

201201
%% By receiving this message we become the leader
202202
%% TODO should we try to debounce this?
203+
handle_msg({request_start, Node}, not_healing, []) ->
204+
not_healing;
205+
203206
handle_msg({request_start, Node},
204207
not_healing, Partitions) ->
205208
rabbit_log:info("Autoheal request received from ~tp", [Node]),

0 commit comments

Comments
 (0)