Skip to content

Conversation

zbynek001
Copy link
Contributor

Serializers configurations from extension default config are not correctly loaded.
At the time extension tries to inject it's default config with InjectTopLevelFallback, serializer configuration was already loaded and it's not reloaded afterwards. Currently only workaround I know about is providing all fallback configurations when creating ActorSystem itself. This pr tries to improve this.

@zbynek001 zbynek001 changed the title [WIP] Serialization reload on settings change Serialization reload on settings change Jun 13, 2017
@zbynek001
Copy link
Contributor Author

Not sure if there is a better way how to handle this scenario.
And maybe it soon won't be needed with the change to persistence serialization

@Aaronontheweb
Copy link
Member

@zbynek001 which serializers do you have this problem for? User-defined ones?

@zbynek001
Copy link
Contributor Author

zbynek001 commented Aug 9, 2017

I've run into this with singleton & sharding. During startup, they are trying to inject default configs via InjectTopLevelFallback which works for most stuff, but not for "akka.actor.serializers" configuration. Those never get updated because they were already loaded.
So the only workaround is to provide complete configuration before ActorSystem itself starts

@Danthar
Copy link
Member

Danthar commented Aug 9, 2017

Looks good to me. We do the same thing for the Dispatchers subsystem as well. The change in itself is good.

@zbynek001
Copy link
Contributor Author

will check the failing test

@zbynek001
Copy link
Contributor Author

Should be fixed by #2952

@zbynek001
Copy link
Contributor Author

reason was that two nodes (those with sharding) were using ClusterShardingMessageSerializer, and the Control node was using hyperion so it was not able to deserialize some messages

@Aaronontheweb Aaronontheweb added this to the 1.3.0 milestone Aug 10, 2017
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@Aaronontheweb Aaronontheweb merged commit 9f61d8a into akkadotnet:v1.3 Aug 11, 2017
@zbynek001 zbynek001 deleted the serialization-settings branch June 24, 2018 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants