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

Maciej Prochniak commented on FLINK-21138:
------------------------------------------

Hi [~trohrmann], thanks for quick response. 
I attach smallest case I could come up with, and stack trace that is thrown.

I think the problem is relatively straightforward and user classloader just 
needs to be passed down to KvStateEntry. I think I can prepare a PR, but I'm 
not quite sure what kind of test would be suitable - as the problem involves 
custom classloaders etc.

 

> KvStateServerHandler is not invoked with user code classloader
> --------------------------------------------------------------
>
>                 Key: FLINK-21138
>                 URL: https://issues.apache.org/jira/browse/FLINK-21138
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Queryable State
>    Affects Versions: 1.11.2
>            Reporter: Maciej Prochniak
>            Priority: Major
>         Attachments: TestJob.java, stacktrace
>
>
> When using e.g. custom Kryo serializers user code classloader has to be set 
> as context classloader during invocation of methods such as 
> TypeSerializer.duplicat()
> KvStateServerHandler does not do this, which leads to exceptions like 
> ClassNotFound etc.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to