Skip to content

Commit

Permalink
Don't start invalid but enabled plugins at startup
Browse files Browse the repository at this point in the history
For example during the startup after RabbitMQ was upgraded but an
enabled community plugin wasn't, and the plugin's broker version
requirement isn't met any more, RabbitMQ still started the plugin
after logging an error.
  • Loading branch information
gomoripeti authored and michaelklishin committed Oct 5, 2024
1 parent b3d6138 commit 2194822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/rabbit/src/rabbit_plugins.erl
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ prepare_plugins(Enabled) ->
[ExpandDir, E2]}})
end,
[prepare_plugin(Plugin, ExpandDir) || Plugin <- ValidPlugins],
Wanted.
[P#plugin.name || P <- ValidPlugins].

maybe_warn_about_invalid_plugins([]) ->
ok;
Expand Down

0 comments on commit 2194822

Please sign in to comment.