-
Notifications
You must be signed in to change notification settings - Fork 4k
Split federation plugin into two: one for queue and another for exchange federation #13921
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
Conversation
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
d71210d to
99fd741
Compare
michaelklishin
requested changes
May 23, 2025
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rabbitmq_federation Role
For those upgrading, we should make rabbitmq_federation depend on both of the new plugins, and otherwise be a no-op just like it is right now.
Testing Results
When I start a node with
gmake run-broker PLUGINS="rabbitmq_management rabbitmq_federation rabbitmq_queue_federation rabbitmq_exchange_federation rabbitmq_federation_management"then the node fails to boot during the plugin startup phase with
Starting broker...
1>
BOOT FAILED
===========
Exception during startup:
exit:{error,{{shutdown,{failed_to_start_child,q_links,{'EXIT',{undef,[{rabbit_federation_pg,start_scope,[rabbitmq_queue_federation_pg_scope],[]},{rabbit_federation_queue_link_sup_sup,start_link,0,[{file,"rabbit_federation_queue_link_sup_sup.erl"},{line,31}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,996}]},{supervisor,do_start_child,3,[{file,"supervisor.erl"},{line,982}]},{supervisor,'-start_children/2-fun-0-',3,[{file,"supervisor.erl"},{line,966}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1891}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,932}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,2276}]}]}}}},{child,undefined,rabbit_federation_sup,{rabbit_federation_sup,start_link,[]},transient,false,300000,worker,[rabbit_federation_sup]}}}
rabbit_boot_steps:-run_step/2-lc$^0/1-0-/2, line 57
rabbit_boot_steps:run_step/2, line 60
rabbit_boot_steps:-run_boot_steps/1-lc$^0/1-0-/1, line 24
rabbit_boot_steps:run_boot_steps/1, line 25
rabbit:start/2, line 994
application_master:start_it_old/4, line 299
{exit,terminating,[{application_controller,call,2,[{file,"application_controller.erl"},{line,515}]},{application,'-ensure_all_started/3-lc$^0/1-0-',1,[{file,"application.erl"},{line,368}]},{application,ensure_all_started,3,[{file,"application.erl"},{line,368}]},{rabbit,'-start_it/1-fun-0-',1,[{file,"src/rabbit.erl"},{line,425}]},{timer,tc,2,[{file,"timer.erl"},{line,599}]},{rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,421}]},{init,start_it,1,[]},{init,start_em,1,[]}]}
Kernel pid terminated (application_controller) ("{application_start_failure,rabbit,{{error,{{shutdown,{failed_to_start_child,q_links,{'EXIT',{undef,[{rabbit_federation_pg,start_scope,[rabbitmq_queue_federation_pg_scope],[]},{rabbit_federation_queue_link_sup_sup,start_link,0,[{file,\"rabbit_federation_queue_link_sup_sup.erl\"},{line,31}]},{supervisor,do_start_child_i,3,[{file,\"supervisor.erl\"},{line,996}]},{supervisor,do_start_child,3,[{file,\"supervisor.erl\"},{line,982}]},{supervisor,'-start_children/2-fun-0-',3,[{file,\"supervisor.erl\"},{line,966}]},{supervisor,children_map,4,[{file,\"supervisor.erl\"},{line,1891}]},{supervisor,init_children,2,[{file,\"supervisor.erl\"},{line,932}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,2276}]}]}}}},{child,undefined,rabbit_federation_sup,{rabbit_federation_sup,start_link,[]},transient,false,300000,worker,[rabbit_federation_sup]}}},{rabbit,start,[normal,[]]}}}")
99fd741 to
f4067f7
Compare
…ge_federation and rabbitmq_federation_common
f4067f7 to
4f86ae0
Compare
michaelklishin
approved these changes
May 27, 2025
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.
Splits
rabbitmq_federationplugin intorabbitmq_queue_federation,rabbitmq_exchange_federationandrabbitmq_federation_common