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

Flink user code classloader should have Flink classloader as parent classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.1
    • 0.10.2, 1.0.0
    • Runtime / Task
    • None

    Description

      Right now, the user code classloader delegates to the system classloader as parent. That works in Flink standalone settings, but not when the Flink core classes themselves are not loaded with the system classloader (certain embedded setups)

      Giving the classloader that was used to load the Flink core classes (like for example org.apache.flink.runtime.taskmanager.Task.class.getClassLoader() solves that problem and does not break behavior in standalone mode.

      Attachments

        Activity

          People

            sewen Stephan Ewen
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: