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



##########
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:
       The calling thread already acquires `CheckpointCoordinator.lock` and 
then `checkpoint.lock`. So it will be enough to synchronize on 
`checkpoint.lock` in `postCleanAction` to have a deadlock.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to