chore: rename `message_queue_too_long` error reason to `mailbox_overflow`
`mailbox_overflow` is consistent with the corresponding config parameter: 'force_shutdown.max_mailbox_size'
This commit is contained in:
parent
23ad37f566
commit
d2a1a7f7cf
|
@ -273,7 +273,7 @@ check_oom(Pid, #{
|
||||||
ok;
|
ok;
|
||||||
[{message_queue_len, QLen}, {total_heap_size, HeapSize}] ->
|
[{message_queue_len, QLen}, {total_heap_size, HeapSize}] ->
|
||||||
do_check_oom([
|
do_check_oom([
|
||||||
{QLen, MaxQLen, message_queue_too_long},
|
{QLen, MaxQLen, mailbox_overflow},
|
||||||
{HeapSize, MaxHeapSize, proc_heap_too_large}
|
{HeapSize, MaxHeapSize, proc_heap_too_large}
|
||||||
])
|
])
|
||||||
end.
|
end.
|
||||||
|
|
|
@ -150,7 +150,7 @@ t_check(_) ->
|
||||||
?assertEqual(ok, emqx_utils:check_oom(Policy)),
|
?assertEqual(ok, emqx_utils:check_oom(Policy)),
|
||||||
[self() ! {msg, I} || I <- lists:seq(1, 6)],
|
[self() ! {msg, I} || I <- lists:seq(1, 6)],
|
||||||
?assertEqual(
|
?assertEqual(
|
||||||
{shutdown, #{reason => message_queue_too_long, value => 11, max => 10}},
|
{shutdown, #{reason => mailbox_overflow, value => 11, max => 10}},
|
||||||
emqx_utils:check_oom(Policy)
|
emqx_utils:check_oom(Policy)
|
||||||
).
|
).
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Rename `message_queue_too_long` error reason to `mailbox_overflow`
|
||||||
|
|
||||||
|
`mailbox_overflow` is consistent with the corresponding config parameter: `force_shutdown.max_mailbox_size`.
|
Loading…
Reference in New Issue