You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (JIRA)" <ji...@apache.org> on 2016/09/09 11:51:20 UTC

[jira] [Commented] (FLINK-4603) KeyedStateBackend cannot restore user code classes

    [ https://issues.apache.org/jira/browse/FLINK-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15476881#comment-15476881 ] 

Aljoscha Krettek commented on FLINK-4603:
-----------------------------------------

Yep, the user code {{ClassLoder}} can be retrieved from the {{Environment}} passed to {{AbstractStateBackend.restoreKeyedStateBackend()}}. A nicer solution would be to completely get rid of Java Serialization in the state serialization.

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