becketqin opened a new pull request #13784:
URL: https://github.com/apache/flink/pull/13784


   ## What is the purpose of the change
   This patch makes the following API changes to the FLIP-27 Source to improve 
the usability.
   1. Add a `checkpointComplete()` method to `SplitEnumerator` and 
`SourceReader` to notify the successful completion of a checkpoint.
   2. Add a `close()` method to the `SplitReader` to allow cleanup when the 
`SplitFetcher` exits.
   
   The patch also cleaned up the unit tests and fixed some minor issue in 
`SourceReader.close()`.
   
   ## Brief change log
   1. Add a `checkpointComplete()` method to `SplitEnumerator` and 
`SourceReader`
   2. Add a `close()` method to the `SplitReader`
   3. Add a TestUtils class to flink-core to host the common test helper 
methods.
   
   ## Verifying this change
   Unit tests have been added to `SourceOperatorTest`, `SourceCoordinatorTest`, 
`SplitFetcherTest` and `SplitFetcherManagerTest` to verify the change.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (JavaDocs)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to