Re: Introduce Barriers in stream source
Posted by
Fabian Hueske-2 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Introduce-Barriers-in-stream-source-tp22273p22277.html
Hi,
It is sufficient to implement the CheckpointedFunction interface.
Since SourceFunctions emit records in a separate thread, you need to ensure that not record is emitted while the shapshotState method is called.
Flink provides a lock to synchronize data emission and state snapshotting. See the JavaDocs of SourceFunction for details.
Best, Fabian