akka/akka — pull request #15458 by patriknw (2014-06-26 15:41:00+00:00)
Title: =per #15457 Correlate persistAsync handlers with journal messages

We have assumed that the handlers can be popped when replies come back from journal, but if messages to journal are in flight when the actor is restarted the handlers does not match up with journal replies.

This solution ignores journal replies that were emitted by an old PersistentActor instance
by passing an uid with the journal messages. This means that the handler will not be
invoked for such messages. That is expected for persistAsync (I think). More suprising
might be that deferred messages are not handled?