Skip to content
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

Akka.Cluster.Sharding: can't recursively unpack ShardingEnvelope contents in IMessageExtractor #7470

Open
Aaronontheweb opened this issue Jan 15, 2025 · 0 comments · May be fixed by #7474
Open

Comments

@Aaronontheweb
Copy link
Member

Version Information
Version of Akka.NET? v1.5.15 to v1.5.35
Which Akka.NET Modules? Akka.Cluster.Sharding

Describe the bug

The bug stems from the ExtractorAdapter we introduced in v1.5.15 as part of #6863

The ShardingEnvelope is meant to be invisible - a transparent way to route messages to the sharding system. We have a tiny bug here that I noticed while working on #7467 this morning: if you include a message type that you want handled by the IMessageExtractor.EntityMessage method inside your ShardingEnvelope, that does not get handled and you instead get whatever the value of the object is inside the ShardingEnvelope.

No one has reported this so I assume it's not a bug anyone has run into, but the correct behavior here is that the output of the ShardingEnvelope should PROBABLY be routed through the _underlying.EntityMessage call - that way the ShardingEnvelope can be side-effect free, as it was intended. In most scenarios this should arrive at the same result as today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant