Hi there,
related to this feature in 2.9.0 release: feat: Optionally include serialization binding for ScalaPb by patriknw · Pull Request #32070 · akka/akka · GitHub
I see that starting from akka 2.9.0, an optional serialization binding is added to the reference.conf which maps all scalapb generated classes to the akka ‘proto’ serializer and this version breaks our application since we also use scalapb and also have another serializer defined for the classes that extend from a specific tagging trait we’ve created.
For some reason I think the sorting logic is broken since 2.9.0, I started to see “Multiple serializers found
” warnings, apparently akka finds 2 different serializers, first one being the akka default proto serializer, and that one is picked which is not correct.
our generated classes have a signature like this: “final case class Initialized() extends scalapb.GeneratedMessage with scalapb.lenses.Updatable[Initialized] with com.ing.baker.runtime.akka.actor.serialization.BakerSerializable
”
and we have this config in our reference conf: "com.ing.baker.runtime.akka.actor.serialization.BakerSerializable" = baker-typed-protobuf
To fix this issue I either need to bind scalapb.GeneratedMessage
to ‘none
’ or ‘baker-typed-protobuf
’, so that akka doesn’t pick its default serializer.
Do you think that this is a regression introduced with akka 2.9.0? or a misconfiguration?
Thanks in advance.