dawidwys commented on a change in pull request #14857:
URL: https://github.com/apache/flink/pull/14857#discussion_r665378130



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java
##########
@@ -563,24 +563,19 @@ private void finishAndReportAsync(
                         env,
                         asyncExceptionHandler,
                         isRunning);
-        registerConsumer().accept(asyncCheckpointRunnable);
+
+        try {

Review comment:
       The `try-catch` is unnecessary here. You can safely add the IOException 
to the method signature. I think the only reason for wrapping it before was to 
match the `Consumer` interface.




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

To unsubscribe, e-mail: [email protected]

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


Reply via email to