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



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java
##########
@@ -582,7 +583,18 @@ private void 
startTriggeringCheckpoint(CheckpointTriggerRequest request) {
 
                                                        return null;
                                                },
-                                               timer));
+                                               timer)
+                                       .exceptionally(error -> {
+                                               isTriggering = false;
+                                               if (!isShutdown()) {
+                                                       
ExceptionUtils.rethrow(error);
+                                               } else if (error instanceof 
RejectedExecutionException) {
+                                                       LOG.debug("Execution 
rejected during shutdown");
+                                               } else {
+                                                       LOG.warn("Error 
encountered during shutdown", error);
+                                               }

Review comment:
       I think we shouldn't log unexpected exceptions on `debug` level.




----------------------------------------------------------------
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