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

ClientUtils set thread ClassLoader that is different from the user cl of PackagedProgram

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.10.0
    • 1.10.0
    • None

    Description

      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

      Attachments

        Activity

          People

            kkl0u Kostas Kloudas
            lzljs3620320 Jingsong Lee
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: