-
Notifications
You must be signed in to change notification settings - Fork 55
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
EventAdapter has no effect on receiveRecover (fromJournal method is not called) #173
Comments
Hi @wenhuancui The event adapter is outside of the control of persistence plugins such as this one, it's used entirely by the What may be the problem is that the I'd say you could refer to #165 - but there's not much to go on there, other than EventAdapter has worked for others. I also have it working at my day job as part of a continuous test suite. |
Thanks @scullxbones. I had read the link #165, and yes it has little information, so I stumbled on this matter. Your clarifications are great for a newbie like me, especially this one: "The event adapter is outside of the control of persistence plugins...there should be a mention of BSONDocument" . The key is the last line. Thanks again. |
That's great news - happy to help out 👍 |
Added #174 to track the docs change. |
+1 @wenhuancui. #165 is a contender for the worst GitHub issue for the year ("Got it working, sorry." - really, wtf?), your description helped me. |
As the title says, events stored as BSONDocument cannot be 'automatically' converted back (pattern matching on event type is failing). And log shows that fromJournal method is not called. However, toJournal method of the EventAdapter is definitely called, as confirmed in the corresponding mongodb collection.
Version info is as follows:
com.github.scullxbones
akka-persistence-mongo-rxmongo_2.12
2.0.3
The text was updated successfully, but these errors were encountered: