diff --git a/deps/rabbit/src/rabbit_peer_discovery.erl b/deps/rabbit/src/rabbit_peer_discovery.erl index 56400d3569e..0b196873c05 100644 --- a/deps/rabbit/src/rabbit_peer_discovery.erl +++ b/deps/rabbit/src/rabbit_peer_discovery.erl @@ -835,6 +835,12 @@ can_use_discovered_nodes(_DiscoveredNodes, []) -> %% %% @private +select_node_to_join([]) -> + ?LOG_INFO( + "Peer discovery: no nodes available for auto-clustering; waiting before retrying...", + [], + #{domain => ?RMQLOG_DOMAIN_PEER_DISC}), + false; select_node_to_join([{Node, _Members, _StartTime, _IsReady} | _]) when Node =:= node() -> ?LOG_INFO(