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



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
##########
@@ -793,8 +785,6 @@ private void runWithCleanUpOnFail(RunnableWithException 
run) throws Exception {
                         invokeException = firstOrSuppressed(ex, 
invokeException);
                     }
                 }
-
-                cleanUpInvoke();
             }
             // TODO: investigate why Throwable instead of Exception is used 
here.
             catch (Throwable cleanUpException) {

Review comment:
       Thanks for pointing out! I apparently missed it.
   I'll remove the `try` block and rename `runWithCleanUpOnFail` to 
`runAndCancelOnFailure` .




-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to