Fix federation supervisor crash during upgrade to 4.2.x on multi-node cluster (backport #15252)#15254
Merged
michaelklishin merged 2 commits intov4.2.xfrom Jan 13, 2026
Merged
Conversation
In a multi-node cluster after a rolling upgrade from below 4.2 to 4.2 supervisor `rabbit_federation_exchange_link_sup_sup` crashed because `rabbit_federation_link_sup:start_link` had arity 1 until 4.1.x. PR mirrored supervisor preserves the child definitions which still include a call with arity 1 (without the link module). To keep old child specs valid, add back a start_link/1 function in `rabbit_federation_link_sup`. Fixes https://github.com/rabbitmq/rabbitmq-server/discussions/15239 (cherry picked from commit 0c71c1a)
Without the patch the test case rolling_upgrade:child_id_format fails with:
```
=== Location: [{erpc,call,1366},
{exchange_SUITE,'-child_id_format/1-fun-5-',675},
{lists,foreach_1,2310},
{exchange_SUITE,child_id_format,670},
{test_server,ts_tc,1794},
{test_server,run_test_case_eval1,1303},
{test_server,run_test_case_eval,1235}]
=== === Reason: {exception,
{noproc,
{gen_server,call,
[rabbit_federation_exchange_link_sup_sup,
which_children,infinity]}}}
```
(cherry picked from commit 4eca000)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
In a multi-node cluster after a rolling upgrade from below 4.2 to 4.2
supervisor
rabbit_federation_exchange_link_sup_supcrashed becauserabbit_federation_link_sup:start_linkhad arity 1 until 4.1.x. PRmirrored supervisor preserves the child definitions which still
include a call with arity 1 (without the link module).
To keep old child specs valid, add back a start_link/1 function in
rabbit_federation_link_sup.Fixes #15239
Run the test with
Without the patch the test case rolling_upgrade:child_id_format fails with:
Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply.You can also fill these out after creating the PR.
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.mddocumentFurther Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution
you did and what alternatives you considered, etc.
This is an automatic backport of pull request #15252 done by [Mergify](https://mergify.com).