Hey again all, I’m currently encountering some is...
# troubleshooting
r
Hey again all, I’m currently encountering some issues that I haven’t seen previously after upgrading a job from Flink 1.15 to Flink 1.18 (and migrating to the Flink Kubernetes Operator as well). The job will begin running fine and suddenly completely stop attempting to complete checkpoints. A few things worth noting about the job: • GCS Storage - All checkpoints, savepoints, and HA configuration are stored in GCS. • Checkpointing Frequency - The job checkpoints every 10s using unaligned, exactly_once checkpoints • Plugin - The job uses the
flink-gs-fs-hadoop-1.18.1
which aligns with the version of the job that is running. Once the initial checkpoint has started, it will run until eventually timing out after 10 minutes with the following logs being the only indicator within the Task Manager(s) that something appears to be wrong:
Copy code
Apr 15, 2024 3:44:20 PM com.google.cloud.hadoop.fs.gcs.GhfsStorageStatistics updateMinMaxStats
INFO: Detected potential high latency for operation op_create. latencyMs=695; previousMaxLatencyMs=0; operationCount=3; context=gs://.../my-job/checkpoints/93adc4ebde39a17486133f0
...
Apr 15, 2024 4:04:19 PM com.google.cloud.hadoop.fs.gcs.GhfsStorageStatistics updateMinMaxStats
INFO: Detected potential high latency for operation stream_write_close_operations. 
latencyMs=247; previousMaxLatencyMs=246; operationCount=7; context=gs://...my-job/checkpoints/9
...
Apr 15, 2024 4:04:20 PM com.google.cloud.hadoop.gcsio.GoogleCloudStorageFileSystem repairImplicitDirectory
INFO: Successfully repaired 'gs://.../my-job/checkpoints/93adc4ebde39a17486133f0c3ef3f508/chk-3855/' directory.
I’ve never previously seen the above problems, but it’s causing the job to fall further and further behind. I’ve created a related Stack Overflow post with a bit more information on the exactly issue and more details, but pretty stumped on this one and not entirely sure if it’s a regression.
So it does look like this seems to be related to the use of unaligned checkpoints, although I can’t find a specific JIRA that directly points to that. Once I disabled unaligned checkpointing, checkpoints began completing as expected.
I have another job that targets Flink 1.17 and uses unaligned checkpointing as well (with autoscaling etc.) and targets the same version of the operator and it appears to run without issue. It sounds like this is potentially a regression that was introduced in Flink 1.18?