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.

(cherry picked from commit 2194822)
  • Loading branch information
gomoripeti authored and mergify[bot] committed Oct 5, 2024
1 parent 70e7386 commit 936d1a1
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 936d1a1

Please sign in to comment.