Skip to content

Commit

Permalink
Check partitions before calling autoheal
Browse files Browse the repository at this point in the history
The inconsistent event might not have been received yet
  • Loading branch information
dcorbacho committed Apr 17, 2023
1 parent 7f16996 commit 416b25d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/rabbit/src/rabbit_autoheal.erl
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ process_down(_, State) ->

%% By receiving this message we become the leader
%% TODO should we try to debounce this?
handle_msg({request_start, Node}, not_healing, []) ->
not_healing;

handle_msg({request_start, Node},
not_healing, Partitions) ->
rabbit_log:info("Autoheal request received from ~tp", [Node]),
Expand Down

0 comments on commit 416b25d

Please # to comment.