jinyangzhen opened a new issue, #29890:
URL: https://github.com/apache/beam/issues/29890

   ### What happened?
   
   After a beam job (using Flink runner) submitted, the Flink 
ChildFirstClassLoader is not released after job completion.  Observing from its 
GCRoot, this classloader is not released due to a thread local static variable 
DESERIALIZATION_CONTEXT being hold by a parking Flink thread. For exampel:
   <img width="1353" alt="image" 
src="https://github.com/apache/beam/assets/1779918/dbd30073-32f2-4f89-98df-58c3f2a16175";>
   
   Here is a small example to reproduce this issue.
   
[word-count-beam.tar.gz](https://github.com/apache/beam/files/13807698/word-count-beam.tar.gz)
   **Notice**: please copy the source file kinglear.txt to /tmp before running 
this example
   
   I tested this example against below 2 envs locally:
   Flink 1.13 + beam-flink-runner-1.13, both JM and TM can observe the same 
leak.
   Flink 1.16 + beam-flink-runner-1.16, only JM can observe this leak.
   
   
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [X] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to