akka/akka-core

Serialization compatibility testkit

Open

#24,623 opened on Feb 26, 2018

View on GitHub
 (7 comments) (1 reaction) (0 assignees)Scala (3,547 forks)batch import
1 - triagedhelp wantedt:clustert:remotingt:serialization

Repository metrics

Stars
 (13,277 stars)
PR merge metrics
 (Avg merge 8d 19h) (10 merged PRs in 30d)

Description

To prevent issues like #24622 we could try to create a testkit that helps testing that the binary protocol stays compatible. For each serializer and each compatible version with changes you could create binary test data to make sure the serializer is still able to read that data.

It should be somewhat simple to test the direction binary => Java object while the other direction, that the new protocol is still compatible with the old one is harder to achieve (because it will probably be hard to load and execute the old serializer to verify that it can read binary data created with a newer version).

Contributor guide