Akka-persistence-inmemory is a plugin for akka-persistence that stores journal and snapshot messages memory, which is very useful when testing persistent actors, persistent FSM and akka cluster
Apache License 2.0
134
stars
41
forks
source link
eventsByPersistenceId query from an actor makes actor's context = null #38
which I mix-in with a persistent actor. Calling queryJournalFrom(queryId, offsetForNextFetch) inside the actor in a test during the recovery phase for the actor causes the assertion above to fail. This is the full context of the code above. and although the system works in the demo, integrating it into another project with the same environment fails. This doesn't seem to happen with Cassandra's journal plugin.
Finally pinpointed the problem. I define a trait:
which I mix-in with a persistent actor. Calling
queryJournalFrom(queryId, offsetForNextFetch)
inside the actor in a test during the recovery phase for the actor causes the assertion above to fail. This is the full context of the code above. and although the system works in the demo, integrating it into another project with the same environment fails. This doesn't seem to happen withCassandra
's journal plugin.