Xuannan Su created FLINK-31943:
----------------------------------

             Summary: Multiple t_env cause class loading problem
                 Key: FLINK-31943
                 URL: https://issues.apache.org/jira/browse/FLINK-31943
             Project: Flink
          Issue Type: Bug
          Components: API / Python
    Affects Versions: 1.17.0
            Reporter: Xuannan Su
         Attachments: flink-sql-connector-kafka-1.17.0.jar, 
pyflink_classloader.py

When a PyFlink process creates multiple StreamTableEnvironment with different 
EnvironmentSettings and sets the "pipeline.jars" at the first created t_env, it 
appears that the jar is not added to the classloader of the first created t_env.

 

After digging a little bit, the reason may be that when creating the second 
table environment with a new EnvironmentSettings, the context classloader 
overwrites by a new classloader, see `EnvironmentSettings.Builder.build` method.

 

I uploaded the script to reproduce the problem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to