-
Notifications
You must be signed in to change notification settings - Fork 30
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
asyncReplayMessages: Failed to deserialize PersistentRepr with kryo serialization #22
Comments
Have you tried snapshot? Does it have the same deserialization issue? Reason I ask is to rule out the first journal record being invalid, i.e., different schema. Do you mind posting |
@ssong-van, @eduardofcbg I'm just starting to use Akka persistence and am looking into using this library, so late to the issue, but I may have some insight into it. Depending on the "ID strategy" used the Akka Kryo serializer may not be able to find the class that a particular ID was previously registered to. I was able to resolve the issue by using the @ssong-van, one suggestion would be to return the original exception (maybe wrapped in your own) when serializing/deserializing. It would greatly help with debugging. I can submit an issue for that (and a PR next week) if it would be helpful. |
@scotdalton Thank you for the insight. Returning the original exception makes sense. In fact I can't believe we missed that! Please submit a PR if you are still interested. |
@ssong-van, definitely still interested. I'll submit a PR in the next day or so. |
Hello,
When using kyro, even though everything works well, when I restart the app, I get the following exception:
Am I making a mistake in using kryo with this library or is this something that could be fixed?
Thanks a lot for your time.
The text was updated successfully, but these errors were encountered: