It looks to me that Flink handles late events in 3 ways:
Let's assume that I have an Event-Time Job that consumes data from Kafka and process a window every 5 minutes. Now, suppose that I redirect late events into another DataStream.
Thank you all!
The stream of late events coming from the window operator is an independent stream that contains only events that were so late that the allowed lateness wasn't enough to accommodate them.
You can do whatever you want with this stream, including sending it through another window. But these events will still be late, so you'll need to either re-generate watermarks using a more relaxed strategy that keeps them from still being late, or extend the allowed lateness of this new window.
Windows always clean up after themselves.