Skip to content

Commit 33ba1bb

Browse files
committed
Revert "rabbit_db: Disconnect from remote nodes after a failure to cluster"
This reverts commit 4062d2a.
1 parent 93dc363 commit 33ba1bb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

deps/rabbit/src/rabbit_db_cluster.erl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ join(RemoteNode, NodeType)
180180
ok ->
181181
ok;
182182
{error, _} ->
183-
%% Disconnect explicitly from remote nodes that we tried to
184-
%% cluster with, because it way interfere with the restart
185-
%% of RabbitMQ below and peer discovery.
186-
lists:foreach(
187-
fun(Node) ->
188-
_ = erlang:disconnect_node(Node)
189-
end, ClusterNodes),
190-
191183
%% We reset feature flags states again and make sure the
192184
%% recorded states on disk are deleted.
193185
rabbit_feature_flags:reset()

0 commit comments

Comments
 (0)