Here is the situation, One my actors (A) is supervised by a Backoff supervisor (B).
The sequence of events that interest me is the following:
- The system starts and everybody is happy
- A fails while processing a message
- B now considers A to be suspended until the backoff delay elapses
- B receives some messages (MM) that he is meant to forward to A
- The backoff delay elaspes and B restarts A
- Everybody is happy again
On step 4, what happens to those messages?
Are they lost? Sent to dead-letters? stashed inside B somewhere, and sent to A when it restarts / resumes?
Now let's add another layer: A is not a standard Actor but an Actor with Stash.
What happens to the stash of messages between the failure of A and its restart/resume? Is it discarded? Is it unstashed? Is it kept inside the stash?