You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Create a ReceiveActor with router using smallest mailbox pool with default resizer and set some upper limit > nrOfInstances
In the ReceiveActor await some long running operation, e.g. Delay
Send many messages to the router
Observe the pool not resizing, e.g. by logging constructor calls
The text was updated successfully, but these errors were encountered:
I guess we'd add a case here to check to see if the Mailbox.IsSuspended is true and if it has more messages queued up than the "pressure" threshold, we should return true here:
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: