-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration from Kryo 4 to Kryo 5 #796
Comments
Might be a good idea to show the change in FieldSerializer configuration. It seems that FieldSerializerConfig needs to be passed into the constructor instead of FieldSerializer itself exposing setter methods to configure after creation. Not sure if that's a general change that should be mentioned? |
Hi @theigl , Posting our discussion here. In the migration guide, you mentioned to use v4 and v5 together.
Here, how do we determine the value of
After some time, all of the data will eventually be v5 only. Does this approach seem fine ? Or do you have some better approach to do this migration ? Our use case doesn't have any persisted data serialized by kryo, its all transient data present in Queues for short term. Also we have more than 100 classes registered with Kryo so we can't modify every class. @theigl you mentioned in the mail
We actually don't have wrappers around serialised data. Are there any edgecases I might be missing by adding an extra byte to the output ? |
In most cases, Kryo 5 and Kryo 4 are not serialization compatible.
If you need to migrate persistent data, the best approach is to have both Kryo 4 and Kryo 5 on the classpath, read old data with Kryo 4 and write it with Kryo 5.
For more information, see https://github.com/EsotericSoftware/kryo/wiki/Migration-to-v5
The text was updated successfully, but these errors were encountered: