Akka.Cluster.Sharding: can't recursively unpack ShardingEnvelope
contents in IMessageExtractor
#7470
Milestone
ShardingEnvelope
contents in IMessageExtractor
#7470
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 #6863akka.net/src/contrib/cluster/Akka.Cluster.Sharding/ClusterSharding.cs
Line 79 in a1c0042
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 theIMessageExtractor.EntityMessage
method inside yourShardingEnvelope
, that does not get handled and you instead get whatever the value of theobject
is inside theShardingEnvelope
.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 theShardingEnvelope
can be side-effect free, as it was intended. In most scenarios this should arrive at the same result as today.The text was updated successfully, but these errors were encountered: