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

Steven Zhen Wu updated FLINK-20871:
-----------------------------------
    Description: Right now, `DataStreamUtils#collectWithClient` is marked as 
deprecated in favor of the `DataStream#executeAndCollect()`. However, some 
integration tests (e.g.  
[FileSourceTextLinesITCase|https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/src/FileSourceTextLinesITCase.java#L187])
 need the `DataStream#executeAndCollectWithClient` API to get JobClient to 
cancel the job after collected required output for unbounded source test.  
(was: Right now, `DataStreamUtils#collectWithClient` is marked as deprecated in 
favor of the `DataStream#executeAndCollect()`. However, some integration tests 
(e.g.  
[FileSourceTextLinesITCase](https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/src/FileSourceTextLinesITCase.java#L187))
 need the `DataStream#executeAndCollectWithClient` API to get JobClient to 
cancel the job after collected required output for unbounded source test.)

> Make DataStream#executeAndCollectWithClient() public
> ----------------------------------------------------
>
>                 Key: FLINK-20871
>                 URL: https://issues.apache.org/jira/browse/FLINK-20871
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / DataStream
>    Affects Versions: 1.12.0
>            Reporter: Steven Zhen Wu
>            Priority: Major
>
> Right now, `DataStreamUtils#collectWithClient` is marked as deprecated in 
> favor of the `DataStream#executeAndCollect()`. However, some integration 
> tests (e.g.  
> [FileSourceTextLinesITCase|https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/src/FileSourceTextLinesITCase.java#L187])
>  need the `DataStream#executeAndCollectWithClient` API to get JobClient to 
> cancel the job after collected required output for unbounded source test.



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

Reply via email to