Repository navigation
Serialization: V2 switch is HOCON-only (drop SerializationV2Setup) - #8729
Merged
Aaronontheweb merged 1 commit intoOct 2, 2026
Conversation
The switch is a boolean read once at startup. HOCON covers every user and Akka.Hosting writes the key, so the Setup added a public type and a precedence rule for nothing. Follow-up to akkadotnet#8724. Part of akkadotnet#8713.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Serialization V2 switch is a boolean read once at startup. HOCON covers every user and Akka.Hosting writes the key, so
SerializationV2Setupadded a public type and a precedence rule for nothing.Changes
SerializationV2Setup;Serializationreads onlyakka.actor.serialization-v2.WithSerializationV2(bool enabled = true)now prependsakka.actor.serialization-v2 = on|off(same signature), so it beats the reference config and earlier HOCON, and a later call beats an earlier one.SerializationV2SwitchSpec; update theakka.confand XML doc comments.SerializationV2Setupfrom the Core API approval.Testing
SerializationV2SwitchSpec,Akka.API.Tests(incl.SerializerTableSpec), serialization tests inAkka.Tests.WithSerializationV2(), false afterWithSerializationV2(false)(over earlieronHOCON), and that the last call wins.Breaking changes
None.
SerializationV2Setupnever shipped in a release.Follow-up to #8724. Part of #8713.