Re: Stopping a kafka consumer gracefully (no losing of inflight events, StoppableFunction)
Posted by
Till Rohrmann on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Stopping-a-kafka-consumer-gracefully-no-losing-of-inflight-events-StoppableFunction-tp18418p18436.html
Hi Bart,
you're right that Flink currently does not support a graceful stop mechanism for the Kafka source. The community has already a good idea how to solve it in the general case and will hopefully soon add it to Flink.
Concerning the StoppableFunction: This interface was introduced quite some time ago and currently only works for some batch sources. In order to make it work with streaming, we need to add some more functionality to the engine in order to properly stop and take a savepoint.
Cheers,
Till