[ 
https://issues.apache.org/jira/browse/FLINK-20492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiangjie Qin updated FLINK-20492:
---------------------------------
    Description: 
The {{SourceOperatorStreamTask}} does not implement {{cancelTask}} and 
{{finishTask}} at this point. This causes resource leak on job cancellation of 
finish.

Currently there are three cases that a Job may exit.
 # Canceled - {{cancelTask()}} method will be called to close the 
SourceOperator.
 # Stopped with a savepoint - {{finishTask()}} method will be called to close 
the SourceOperator.
 # Runs to the EndOfInput -  the SourceOperator is closed in 
{{StreamTask.afterInvoke()}}.

 

  was:The {{SourceOperatorStreamTask}} does not implement {{cancelTask}} and 
{{finishTask}} at this point. This causes resource leak on job cancellation of 
finish.


> The SourceOperatorStreamTask should implement cancelTask() and finishTask()
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-20492
>                 URL: https://issues.apache.org/jira/browse/FLINK-20492
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Common
>            Reporter: Jiangjie Qin
>            Assignee: Jiangjie Qin
>            Priority: Blocker
>             Fix For: 1.12.0
>
>
> The {{SourceOperatorStreamTask}} does not implement {{cancelTask}} and 
> {{finishTask}} at this point. This causes resource leak on job cancellation 
> of finish.
> Currently there are three cases that a Job may exit.
>  # Canceled - {{cancelTask()}} method will be called to close the 
> SourceOperator.
>  # Stopped with a savepoint - {{finishTask()}} method will be called to close 
> the SourceOperator.
>  # Runs to the EndOfInput -  the SourceOperator is closed in 
> {{StreamTask.afterInvoke()}}.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to