Hi all. I am reading from a Kafka topic and sinkin...
# troubleshooting
t
Hi all. I am reading from a Kafka topic and sinking to an Azure Blob container. I've been experiencing checkpoint failures after a certain period of time. These checkpoints expire and this usually happens after the first 5-10 successful checkpoints. I wish to understand the root cause of these failures but am not seeing much in the jobmanager logs. Appreciate any guidance this community can offer. I've attached an example of the pattern I am experiencing with the checkpoints. The job is reading from Kafka, with a sliding process window. I have enabled unaligned checkpoints and tested various checkpoint timeout and intervals but this only delays the inevitable checkpoint failure. I have also tried reducing the window duration, which results in a lower checkpoint size, but this also results in the checkpoints failing at some point.
r
Any JM logs or exceptions do you have? Is job under backpressure… Can you check by clicking on (+) button and is it any specific slot which is not checkpointing
t
The only exception I see in the logs, is the checkpoint expiring.
"org.apache.flink.runtime.checkpoint.CheckpointException: Checkpoint expired before completing"
The job has backpressure. I have 2 operators, usually both fail to checkpoint: • Source: Kafka Source -> Map -> Map -> Filter -> Map -> Timestamps/Watermarks -> Map -> Map • SlidingEventTimeWindows -> Map -> Flat Map -> Map -> Sink: Writer -> Sink: Committer
r
Yes, so in extreme backpressure we have also observed that the
async
phase of checkpointing is not getting completed resulting in Failure… In a nutshell try to reduce some Backpressure I have found this article which explains this -> https://www.alibabacloud.com/developer/a/flink/flink-unaligned-checkpoint-in-shope
t
Thanks for the article. Any advice for reducing backpressure (besides parallelism)? I was thinking about enabling flame graphs to see if it helps to locate potential causes...
r
That you need to go bit in your code and identify the hotspot only, particularly check which slots are backpressured