Skip to content

Commit c93cacf

Browse files
committed
Log incorrectly claims the limit is per node, but the component count is over all vhost in the cluster
1 parent a9e972f commit c93cacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_runtime_parameters.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ is_within_limit(Component) ->
166166
case Limit < 0 orelse count_component(Component) < Limit of
167167
true -> ok;
168168
false ->
169-
ErrorMsg = "Limit reached: component ~ts is limited to ~tp per node",
169+
ErrorMsg = "Limit reached: component ~ts is limited to ~tp",
170170
ErrorArgs = [Component, Limit],
171171
rabbit_log:error(ErrorMsg, ErrorArgs),
172-
{errors, [{"component ~ts is limited to ~tp per node", [Component, Limit]}]}
172+
{errors, [{"component ~ts is limited to ~tp", [Component, Limit]}]}
173173
end.
174174

175175
count_component(Component) -> length(list_component(Component)).

0 commit comments

Comments
 (0)