Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.8.0
-
None
Description
There are several threads in my application,and every thread will launch a flink job with LocalStreamEnvironment/MiniCluster.But when I interrupt these threads again and again, I found there are many residue threads,and that caused a memory leak.
When I debug it,this message appears "RecipientActor[akka://flink/user/taskmanager_0#-584606215] had already been terminated. Sender[null] sent the message of type "org.apache.flink.runtime.rpc.messages.LocalRpcInvocation". So I think
when flink close minicluster,TaskExecutor will be closed in the first place,and this operation will cause akka message which will close StreamTask abnormal.So the work thread will be more and more.
I call Thread sleep in my application to avoid this problem,any good suggestions?
Attachments
Issue Links
- is duplicated by
-
FLINK-11630 TaskExecutor does not wait for Task termination when terminating itself
- Closed
- is related to
-
FLINK-11630 TaskExecutor does not wait for Task termination when terminating itself
- Closed
- links to