[ https://issues.apache.org/jira/browse/FLINK-6096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15929604#comment-15929604 ]
ASF GitHub Bot commented on FLINK-6096: --------------------------------------- GitHub user shixiaogang opened a pull request: https://github.com/apache/flink/pull/3558 [FLINK-6096][checkpoint] Refactor the migration of old-versioned savepoints 1. The migrated classes in `SavepointV0` are moved to the package `org.apache.flink.migration.v0`. In the future, each deprecated savepoint version will have its own migration package. 2. A mapping is deployed in `SavepointV0` to record all deprecated classes. `MigrationInstantiationUtil` now will use the mapping to correctly deserialized those deprecated classes. 3. Unused methods in migrated classes are removed. 4. The formats in old snapshots are added in the comments to help understand the restoring. You can merge this pull request into a Git repository by running: $ git pull https://github.com/shixiaogang/flink flink-6096 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/3558.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3558 ---- commit b5f9d73703372c0d71da2c84cdd11dce16641b28 Author: xiaogang.sxg <xiaogang....@alibaba-inc.com> Date: 2017-03-17T08:56:00Z Refactor the migration of old-versioned savepoints ---- > Refactor the migration of old versioned savepoints > -------------------------------------------------- > > Key: FLINK-6096 > URL: https://issues.apache.org/jira/browse/FLINK-6096 > Project: Flink > Issue Type: Improvement > Components: State Backends, Checkpointing > Reporter: Xiaogang Shi > > Existing code for the migration of old-versioned savepoints does not allow to > correctly deserialize those classes changed in different versions. I think > we should create a migration package for each old-versioned savepoint and put > all migrated classes in the savepoint there. A mapping can be deployed to > record those migrated classes in the savepoint so that we can correctly > deserialize them. -- This message was sent by Atlassian JIRA (v6.3.15#6346)