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 198d8f93d3)
This commit is contained in:
Michal Kuratczyk 2025-01-28 17:10:13 +01:00 committed by Mergify
parent 7840b666d1
commit 7150c58452
1 changed files with 1 additions and 1 deletions

View File

@ -1353,7 +1353,7 @@ add_member(Q, Node, Membership, Timeout) when ?amqqueue_is_quorum(Q) ->
Fun = fun(Q1) ->
Q2 = update_type_state(
Q1, fun(#{nodes := Nodes} = Ts) ->
Ts#{nodes => [Node | Nodes]}
Ts#{nodes => lists:usort([Node | Nodes])}
end),
amqqueue:set_pid(Q2, Leader)
end,