[ https://issues.apache.org/jira/browse/FLINK-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15512553#comment-15512553 ]
Stefan Richter commented on FLINK-4603: --------------------------------------- Currently, we should still keep the UserCodeClassLoader around in the RocksDB backend because we still need to serialize the StateDescriptor, which contains the TypeSerializer, so that users can not accidentally create StateDescriptors with a wrong TypeSerializer. However, we should consider that TypeSerializer can be exchanged (ensuring their compatibility), e.g. to allow different serialization versions. > KeyedStateBackend cannot restore user code classes > -------------------------------------------------- > > Key: FLINK-4603 > URL: https://issues.apache.org/jira/browse/FLINK-4603 > Project: Flink > Issue Type: Bug > Components: State Backends, Checkpointing > Affects Versions: 1.2.0 > Reporter: Till Rohrmann > Assignee: Stefan Richter > Priority: Blocker > Fix For: 1.2.0 > > > A user reported that he cannot restore keyed state which contains user code > classes. I suspect that we don't use the user code class loader to > deserialize the state. > The solution seems to be to forward the user code class loader to the > {{KeyedStateBackends}} when restoring state. -- This message was sent by Atlassian JIRA (v6.3.4#6332)