-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DefaultResizer does not reisize when ReceiveAsync is used #5327
Comments
Issue here is that we should probably treat |
I guess we'd add a case here to check to see if the akka.net/src/core/Akka/Routing/Resizer.cs Lines 229 to 234 in 6cb69d2
|
This was referenced Nov 10, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version Information
Version of Akka.NET? 1.3.14
Which Akka.NET Modules? core
Describe the bug
I use SmallestMailboxPool with DefaultResizer. In the worker actors I use ReceiveAsync. I noticed that the pool is not resizing even if the ReceiveAsync awaits some long running operation and there are many messages stuck in the mailboxes.
I think the reason is in the DefaultResizer Pressure method, it checks
Mailbox.IsScheduled()
but the mailbox is Suspended because ReceiveAsync calls ActorTaskScheduler.RunTask that calls dispatcher.Suspend that calls mailbox.Suspend.To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: