akka/akka-core

Serialization compatibility testkit

Aperta

#24.623 aperta il 26 feb 2018

 (7 commenti) (1 reazione) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:clustert:remotingt:serialization

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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).

Guida contributor