-
Notifications
You must be signed in to change notification settings - Fork 35
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
Loading snapshot error #57
Comments
Exception points to problems with deserializing type |
Hey @Horusiath I should have mentioned this is the system shard coordinator which is failing to start. From what I can see it's correctly stored the key AA as its pseudo "type" https://github.com/akkadotnet/akka.net/blob/dev/src/contrib/cluster/Akka.Cluster.Sharding/Serialization/ClusterShardingMessageSerializer.cs#L28 however it looks to me like My setup doesn't make use of any custom serialization - everything should be using the defaults which I believe is Protobuf. Thanks for your help! |
@dubs999 Cluster sharding has its own dedicated serializer, which interprets manifests differently than akka default message serializer. Having that error message message means, that default is tried to being used on message deserialization. Most probably you haven't included var system = ActorSystem.Create("system", myConfig.WithFallback(ClusterSharding.DefaultConfig())); |
Hey @Horusiath I've copied and pasted the setup I'm using below. I have the fallback configuration already declared. Sorry if this is going off topic but we didnt cover persistence module setup in quite as much detail during Aaron's course. Is there any additional fallback modules that are required for persistence/sharding?
|
I don't know whether this is an over simplification but this is the line which appears to blow up. |
I've got a simple app which can repro this bug fairly easily. I've lowered the threshold at which a snapshot is taken to 10 to make the turnaround a bit more rapid. https://github.com/dubs999/akka.net-cluster-sharding Steps
If there is anything obvious that's missing with this example then that would be super helpful. Let me know if I can help in any other way. Dan |
You're right, @dubs999 . This is a bug. |
Thanks @Horusiath I guess I have a couple of options.
Do you have customers which are using persistent sharding in production? If so, do you know which persistence plugin they are using? We may also have some time to contribute a fix however our release deadline is fairly tight and I assume a public build wont be available in the very near term. Many thanks |
I know about several projects using Akka.Persistence.SqlServer. If I'm right redis plugin also should work, and mongodb plugin was modified some time ago specifically to also expose cluster sharding compatibility. Another option is to use cluster sharding in |
I've submitted a PR which fixes the issue (when tested locally). I've not got a great deal of exposure to the Akka framework so apologies if the fix isn't robust enough. Thank you for all your help guys! |
Closed via #60 |
After running my application for a while I reach the 1000 journal limit and a coordinator snapshot is taken.
Every subsequent time I load the application from this point I receive the error below.
I'm wondering if this is a hocon configuration issue?
Many thanks
Setup:
Hocon:
The text was updated successfully, but these errors were encountered: