Skip to content

Peer discovery cleanup: be more defensive (backport #12809) #12811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 25, 2024

See discussion #12807 for details. This is to avoid an exception when
the cleanup functions perform peer discovery and may get a single node back
instead of a list.

rabbit_peer_discovery:normalize/1 can be
changed to only return lists of nodes but then
there is a number of core code paths that
treat a single node as a special "preselected" value.

So let's keep that part and convert both
sets of nodes to lists before computing the
difference.


This is an automatic backport of pull request #12809 done by [Mergify](https://mergify.com).

See discussion #12807 for details.

rabbit_peer_discovery:normalize/1 can be
changed to only return lists of nodes but then
there is a number of core code paths that
treat a single node as a special "preselected"
value.

So let's keep that part and convert both
sets of nodes to lists before computing the
difference.

(cherry picked from commit 55411e6)
@michaelklishin michaelklishin added this to the 4.0.5 milestone Nov 25, 2024
@michaelklishin michaelklishin merged commit 989d3fc into v4.0.x Nov 25, 2024
194 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.0.x/pr-12809 branch November 25, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant