Re: Watermarks in Event Time windowing
Posted by
alpinegizmo on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Watermarks-in-Event-Time-windowing-tp23061p23090.html
To clarify one thing: keep in mind that Flink does not support per-key watermarks. Watermarks are typically generated per-source, or in the case of kafka, can be per-partition. An idle source (or in the case of kafka, an idle partition) can prevent an event-time window from being triggered, but you don't need to worry about this on a per-key basis.
On Fri, Sep 14, 2018 at 6:08 AM Taher Koitawala <
[hidden email]> wrote:
Yes in many cases what we have faced that let's say in a keyed stream an element of a specific key comes in which triggers a new window. If a corresponding elements of the same key does not arrive a new watermark is not generated for the window to purge. Then we faced issues with flink keeping records in the window and not purging them at all. For this reason we explicitly had to write some logic to generate a timestamp this is greater than the currentTimestamp and then forcefully make the window purge its elements.
--
David Anderson | Training Coordinator | data Artisans
--
Join Flink Forward - The Apache Flink Conference
Stream Processing | Event Driven | Real Time