Reputation: 3532
When I use flink event time window, the window just doesn't trigger. How can I solve the problem, and are there any ways to debug?
Upvotes: 2
Views: 2750
Reputation: 3532
As you are using the event time window, it is probably a watermark problem. The window only output when watermarks make a progress. There are some reasons why the event time has not been advanced:
The window will output if we change event time to processing time. Furthermore, we can monitor event time by checking the watermarks in the web dashboard[1] or print-debug it with a ProcessFunction which can lookup the current watermark.
Upvotes: 7
Reputation: 957
Be sure you're setting environment.setStreamTimeCharacteristic(TimeCharacteristic.EventTime)
.
Upvotes: 2