You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "jkirthivasan92 (via GitHub)" <gi...@apache.org> on 2025/04/21 14:01:58 UTC

[I] Unstashed messages enqueued in TestActorRef mailbox while processing a message from self are stuck until another message is received [pekko]

jkirthivasan92 opened a new issue, #1825:
URL: https://github.com/apache/pekko/issues/1825

   This is a bug created on the pekko side for the issue here: https://github.com/akka/akka/issues/30170
   
   In the following workflow, unstashed messages are enqueued in the mailbox but are not processed as expected:
   
   1. Send message (`messageOne`) from TestKit to TestActorRef
   2. TestActorRef underlying actor stashes `messageOne` and schedules a subsequent message to self (`selfMessage`)
   3. `selfMessage` is sent and processed and `messageOne` is unstashed during processing of `selfMessage`
   4. `messageOne` is not processed
   5. Send another message (`messageTwo`) from TestKit to TestActorRef
   6. Both `messageOne` and `messageTwo` are processed
   
   `akka.testkit.CallingThreadDispatcher#runQueue` appears to process the provided `MessageQueue` at the time of invocation rather than using the active `Mailbox` `MessageQueue`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] Unstashed messages enqueued in TestActorRef mailbox while processing a message from self are stuck until another message is received [pekko]

Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning commented on issue #1825:
URL: https://github.com/apache/pekko/issues/1825#issuecomment-2818738814

   A fix is welcome but the original issue has a description of why this low priority. https://github.com/akka/akka/issues/30170#issuecomment-816704106


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org