flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zili Chen (Jira)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-14808) ClientUtils set thread ClassLoader that is different from the user cl of PackagedProgram
Date Sun, 17 Nov 2019 00:35:00 GMT

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

Zili Chen commented on FLINK-14808:
-----------------------------------

[~kkl0u] after looking into your fix I think I misunderstand the issue previously. It is
a specific issue without duplicate.

> ClientUtils set thread ClassLoader that is different from the user cl of PackagedProgram
> ----------------------------------------------------------------------------------------
>
>                 Key: FLINK-14808
>                 URL: https://issues.apache.org/jira/browse/FLINK-14808
>             Project: Flink
>          Issue Type: Bug
>          Components: Client / Job Submission
>    Affects Versions: 1.10.0
>            Reporter: Jingsong Lee
>            Assignee: Kostas Kloudas
>            Priority: Blocker
>             Fix For: 1.10.0
>
>
> In ClientUtils.executeProgram, it create a new userCodeClassLoader and set it to thread
context. (Name it cl1).
> But in PackagedProgram, it use a different class loader to create user Class. (Name
it cl2).
> So in user's code,  if user use thread loader to create a class, this class is come
from cl1, if user want to work this class with their own class, there should be a failure,
because them come from different class loader.
> Root cause: https://issues.apache.org/jira/browse/FLINK-14745



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

Mime
View raw message