fallintoplace opened a new pull request, #3096: URL: https://github.com/apache/pekko/pull/3096
## Summary Classic FSM and PersistentFSM keep transition listeners in a listener set until they explicitly unsubscribe. This changes the subscription path to DeathWatch listeners with an internal cleanup message, so stopped listener actors are removed automatically. The explicit unsubscribe/deafen paths still remove listeners, and they now also unwatch only DeathWatch registrations created by the listener subscription path. If an FSM was already watching the same actor for its own logic, this change does not replace that existing watch. ## Tests - `actor-tests/testOnly org.apache.pekko.actor.FSMTransitionSpec` - `persistence/testOnly org.apache.pekko.persistence.fsm.InmemPersistentFSMSpec` - `docs/paradox` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
