Skip to content

Commit c5e8a5a

Browse files
committed
rabbit_vhosts: Only reconcile vhost procs on nodes running RabbitMQ
[Why] If we use the list of reachable nodes, it includes nodes which are currently booting. Trying to start vhost during their start can disturb their initialization and has a great chance to fail anyway.
1 parent 6565291 commit c5e8a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_vhosts.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ start_processes_for_all(Nodes) ->
127127

128128
-spec start_processes_for_all() -> 'ok'.
129129
start_processes_for_all() ->
130-
start_processes_for_all(rabbit_nodes:list_reachable()).
130+
start_processes_for_all(rabbit_nodes:list_running()).
131131

132132
%% Same as rabbit_vhost_sup_sup:start_on_all_nodes/0.
133133
-spec start_on_all_nodes(vhost:name(), [node()]) -> 'ok'.

0 commit comments

Comments
 (0)