Skip to content
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

Sender is not preserved in ReceivePersistentActor.Persist callback #3105

Closed
andersstorhaug opened this issue Sep 16, 2017 · 2 comments
Closed

Comments

@andersstorhaug
Copy link

andersstorhaug commented Sep 16, 2017

As outlined in the documentation here:

An event handler may close over persistent actor state and mutate it. The sender of a persisted event is the sender of the corresponding command. This allows event handlers to reply to the sender of a command (not shown).

However, when I attempt to do this, from within a Persist callback, Sender is akka://System/deadLetters. The Sender property however is correct when accessed in the outer command handler.

As an aside, simple workaround here is to use a closure over Sender in the Persist callback.

This is with FX 4.7 and Akka 1.3.1.

@andersstorhaug andersstorhaug changed the title Sender is not preserved in PersistentActor.Persist callback Sender is not preserved in ReceivePersistentActor.Persist callback Sep 16, 2017
@ismaelhamed
Copy link
Member

ismaelhamed commented Sep 11, 2019

@andersstorhaug This was fixed via #3779 for the BatchingSqlJournal. And for the classic journal this shouldn't be an issue at all at this point.

@Aaronontheweb
Copy link
Member

Closed as part of 1.3.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants