Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-11045

UserCodeClassLoader has not been set correctly for RuntimeUDFContext in CollectionExecutor

    XMLWordPrintableJSON

    Details

      Description

      We should use UserCodeClassLoader when new a RuntimeUDFContext.

      i.e., Change the code from

      this.classLoader = getClass().getClassLoader();
      
      new RuntimeUDFContext(taskInfo, classLoader, executionConfig, cachedFiles, accumulators, metrics)
      

      to

      new RuntimeUDFContext(taskInfo, Thread.currentThread().getContextClassLoader, executionConfig, cachedFiles, accumulators, metrics)
      

      in CollectionExecutor.

      FYI. This is a problem reported from the user mailing list.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hequn8128 Hequn Cheng
                Reporter:
                hequn8128 Hequn Cheng
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: