You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Steven Zhen Wu (Jira)" <ji...@apache.org> on 2020/10/20 01:00:01 UTC

[jira] [Comment Edited] (FLINK-19698) Add close() method and onCheckpointComplete() to the Source.

    [ https://issues.apache.org/jira/browse/FLINK-19698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217111#comment-17217111 ] 

Steven Zhen Wu edited comment on FLINK-19698 at 10/20/20, 12:59 AM:
--------------------------------------------------------------------

Since FLIP-27 is the unified source interface for both streaming and batch modes, what does the checkpoint method mean for batch mode?


was (Author: stevenz3wu):
Since FLIP-27 is the unified source interface for both streaming and batch modes, what does it the checkpoint method mean for batch mode?

> Add close() method and onCheckpointComplete() to the Source.
> ------------------------------------------------------------
>
>                 Key: FLINK-19698
>                 URL: https://issues.apache.org/jira/browse/FLINK-19698
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / Common
>    Affects Versions: 1.11.2
>            Reporter: Jiangjie Qin
>            Assignee: Jiangjie Qin
>            Priority: Major
>
> Right now there are some caveats to the new Source API. From the implementation of some connectors. We would like to make the following improvements to the current Source API.
>  # Add the following method to the {{SplitReader}} API.
> {{public void close() throws Exception;}}
> This method allows the SplitReader implementations to be closed properly when the split fetcher exits.
>  # Add the following method to the {{SourceReader}} API.
> {{public void checkpointComplete(long checkpointId);}}
> This method allows the {{SourceReader}} to take some cleanup / reporting actions when a checkpoint has been successfully taken.
>  
>  



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