Akka.Tools.ClusterClient: ClusterClient.Send
and ClusterClient.SendToAll
aren't serialized using ClusterClientSerializer
#6803
Milestone
Version Information
Version of Akka.NET? 1.5.8 and previous
Which Akka.NET Modules?
Describe the bug
ClusterClient.Send
andClusterClient.SendToAll
aren't serialized usingClusterClientSerializer
- they are instead serialized using theSystem.Object
serializer. This means that if a user defines a custom serializer for messages they wish to send overClusterClient
, none of the messages sent will use that serializer.Reproduction
Will submit one via PR shortly.
Expected behavior
User-defined messages should be serialized using their own custom serializer, when specified, not overridden by a user-defined serializer
Actual behavior
Newtonsoft.Json serializer is being used instead.
Additional context
Since this involves making a change to the wire format (one of the no-no's outlined in our developer guidelines), we're going to need to add a feature flag to make this backwards compatible and enable that by default:
Users who want to opt-in to the new behavior will be able to do-so by turning off that setting.
The text was updated successfully, but these errors were encountered: