Skip to content

Commit

Permalink
chore: rename message_queue_too_long to mailbox_overflow
Browse files Browse the repository at this point in the history
`mailbox_overflow` is consistent with the corresponding config parameter:
 'force_shutdown.max_mailbox_size'
  • Loading branch information
SergeTupchiy committed Mar 22, 2024
1 parent 23ad37f commit c201370
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/emqx_utils/src/emqx_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ check_oom(Pid, #{
ok;
[{message_queue_len, QLen}, {total_heap_size, HeapSize}] ->
do_check_oom([
{QLen, MaxQLen, message_queue_too_long},
{QLen, MaxQLen, mailbox_overflow},
{HeapSize, MaxHeapSize, proc_heap_too_large}
])
end.
Expand Down
2 changes: 1 addition & 1 deletion apps/emqx_utils/test/emqx_utils_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ t_check(_) ->
?assertEqual(ok, emqx_utils:check_oom(Policy)),
[self() ! {msg, I} || I <- lists:seq(1, 6)],
?assertEqual(
{shutdown, #{reason => message_queue_too_long, value => 11, max => 10}},
{shutdown, #{reason => mailbox_overflow, value => 11, max => 10}},
emqx_utils:check_oom(Policy)
).

Expand Down

0 comments on commit c201370

Please sign in to comment.