Akka.Cluster.Sharding unexpected messages in HashCodeMessageExtractor #5847
-
Hello, I have an application using Akka Cluster Sharding. When I enable remember-entities and start some actors, I get some unexpceted messages going through my HashCodeMessageExtractor implementation - public override string EntityId(object message). I observed messages of type Akka.DistributedData.UpdateSuccess, Akka.Actor.Terminated and Akka.Cluster.Sharding.Passivate. Is this expected? How should I handle these type of messages? I'm using state-store-mode = ddata |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @Binelli - I've never seen that happen before and those messages should not be going through the message extractor. The only explanation I can think of is that the |
Beta Was this translation helpful? Give feedback.
-
Hey @Aaronontheweb I caught this behaviour in an application using Akka.NET version 1.4.35 but I also created this little example program to isolate the "issue" using the latest version 1.4.37: |
Beta Was this translation helpful? Give feedback.
-
I took a stab at fixing this for v1.4, but unfortunately the issue is more complex there - the |
Beta Was this translation helpful? Give feedback.
I took a stab at fixing this for v1.4, but unfortunately the issue is more complex there - the
DDataShard
's use of a behavior stack makes this issue somewhat difficult to debug performantly and requires re-architecting the way this class is designed, which is exactly what #5857 does. I think the right fix for this is to upgrade to the 1.5 nightlies and the public betas we'll push on NuGet once available. I can commit to getting the first v1.5 beta up on NuGet next week.