Skip to content

Commit 7150c58

Browse files
mkuratczykmergify[bot]
authored andcommitted
Make sure there are no duplicates on the nodes list
This is probably more of a CI bug than anything else - in CI we use a lower tick value, which increases the odds of the periodic repair triggering very early. Failure: https://github.com/rabbitmq/rabbitmq-server/actions/runs/13013004042/job/36295172214?pr=13050 (cherry picked from commit 198d8f9)
1 parent 7840b66 commit 7150c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_quorum_queue.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ add_member(Q, Node, Membership, Timeout) when ?amqqueue_is_quorum(Q) ->
13531353
Fun = fun(Q1) ->
13541354
Q2 = update_type_state(
13551355
Q1, fun(#{nodes := Nodes} = Ts) ->
1356-
Ts#{nodes => [Node | Nodes]}
1356+
Ts#{nodes => lists:usort([Node | Nodes])}
13571357
end),
13581358
amqqueue:set_pid(Q2, Leader)
13591359
end,

0 commit comments

Comments
 (0)