Hi all,
I'm having an issue with out-of-order events when consuming from Kafka ONLY on restoring from a checkpoint/ savepoint, and would appreciate your help.
The Flink app is consuming events from two different Kafka topics, each with around 3k events per second.
This app uses the bounded out-of-order watermark strategy on the source.
During normal execution everything works as expected and we do not get any late arriving data (based on event time and watermarks), but on checkpoints/ savepoints restores we're getting late arriving events, no matter how much we increase the out of order bound. Did anyone ever encounter this situation?
I think the problem is the following though not sure how to confirm it or how to solve it. On recovery, Flink is consuming Kafka events very fast, I'm guessing that within a watermark generation interval (200ms) Flink is consuming events with timestamp difference of more than my out of order bound (30s), e.g., consumes events from time t to time t + 40s from all partitions, watermark generation kicks in setting watermark to t+40s, hence the batch of events from time t to time t+30s are considered late. Do you think this is plausible?