[ https://issues.apache.org/jira/browse/FLINK-20492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiangjie Qin updated FLINK-20492: --------------------------------- Affects Version/s: 1.11.3 1.12.0 > 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 > Affects Versions: 1.12.0, 1.11.3 > Reporter: Jiangjie Qin > Assignee: Jiangjie Qin > Priority: Blocker > Labels: pull-request-available > Fix For: 1.13.0, 1.12.1 > > > 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)