[
https://issues.apache.org/jira/browse/FLINK-21138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273766#comment-17273766
]
Till Rohrmann commented on FLINK-21138:
---------------------------------------
I think you are right [~mproch]. The problem with context classloader is that
it is not very explicit and can easily break (e.g. if a method further
downstream sets a different context classloader). The clean solution would
probably be to pass in an explicit classloader. But this would be super
involved. Hence, I am ok with your proposal. I've assigned you to the ticket.
> 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)