I'm currently confused about windows and states. S...
# troubleshooting
f
I'm currently confused about windows and states. Suppose I have a program that counts user access data every minute and needs to do sum statistics in each window. Assume that at this time, I configure checkpoint for the fault tolerance of the program. The checkpoint configuration is to trigger every 30 seconds. Then when the time is 01:00, the program hangs. In theory, it can only be restored to the state data at 00:30, but there is no trigger window at 00:30. After calculation, we get the kafka offset data at 00:30 and the window data at 00:00. Is there any problem with my understanding? I tried adjusting the checkpoint time to 1 minute, but this did not solve my problem. Because I cannot guarantee that the checkpoint time will be exactly the time when the window ends.
m
Checkpoint period should be independent of a window’s trigger time. Checkpoints should be based off a wall-clock time, where as windows are often based on event time (unless you’re using processing time). Is your job actually hanging? Or is that a scenario that you’re considering?