rkhachatryan commented on a change in pull request #14683:
URL: https://github.com/apache/flink/pull/14683#discussion_r560170984



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointsCleaner.java
##########
@@ -62,8 +62,15 @@ public void cleanCheckpoint(
                             }
                         }
                     } finally {
-                        numberOfCheckpointsToClean.decrementAndGet();
-                        postCleanAction.run();
+                        try {
+                            numberOfCheckpointsToClean.decrementAndGet();
+                            postCleanAction.run();
+                        } catch (Exception e) {
+                            LOG.error(
+                                    "Error while cleaning up checkpoint {}",
+                                    checkpoint.getCheckpointID(),
+                                    e);

Review comment:
       No, I don't have a concrete scenario in mind. I'm just concerned that it 
can arise in the future.
   Okay, I'll add `synchronized` in `scheduleTriggerRequest` and drop 
`CheckpointsCleaner` commit - it's not necessary if `postCleanAction` is safe.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to