Skip to content

Commit 198d8f9

Browse files
committed
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
1 parent 7862c2f commit 198d8f9

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
@@ -1373,7 +1373,7 @@ do_add_member(Q, Node, Membership, Timeout)
13731373
Fun = fun(Q1) ->
13741374
Q2 = update_type_state(
13751375
Q1, fun(#{nodes := Nodes} = Ts) ->
1376-
Ts#{nodes => [Node | Nodes]}
1376+
Ts#{nodes => lists:usort([Node | Nodes])}
13771377
end),
13781378
amqqueue:set_pid(Q2, Leader)
13791379
end,

0 commit comments

Comments
 (0)