flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sunjincheng (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-11045) UserCodeClassLoader has not been set correctly for RuntimeUDFContext in CollectionExecutor
Date Wed, 05 Dec 2018 09:30:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-11045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

sunjincheng closed FLINK-11045.
-------------------------------
    Resolution: Fixed

Fixed in master: 3eac4193b31dd4b9bcf0bd09e2adc02bda4a2873
Fixed in release-1.7: 652302863a5f1b5f07b9cd80692d93bf9e449181
Fixed in release-1.6: 19ea6c57a7720d9b6502d57cb1c207c7304fb048

> UserCodeClassLoader has not been set correctly for RuntimeUDFContext in CollectionExecutor
> ------------------------------------------------------------------------------------------
>
>                 Key: FLINK-11045
>                 URL: https://issues.apache.org/jira/browse/FLINK-11045
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API &amp; SQL
>            Reporter: Hequn Cheng
>            Assignee: Hequn Cheng
>            Priority: Major
>              Labels: pull-request-available
>
> We should use {{UserCodeClassLoader}} when new a {{RuntimeUDFContext}}.
> i.e., Change the code from
> {code:java}
> this.classLoader = getClass().getClassLoader();
> new RuntimeUDFContext(taskInfo, classLoader, executionConfig, cachedFiles, accumulators,
metrics)
> {code}
> to
> {code:java}
> new RuntimeUDFContext(taskInfo, Thread.currentThread().getContextClassLoader, executionConfig,
cachedFiles, accumulators, metrics)
> {code}
> in {{CollectionExecutor}}.
> FYI. This is a problem reported from the [user mailing list|http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Table-API-example-Table-program-cannot-be-compiled-This-is-a-bug-Please-file-an-issue-td24852.html].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message