rkhachatryan commented on a change in pull request #16885: URL: https://github.com/apache/flink/pull/16885#discussion_r693198045
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java ########## @@ -881,12 +859,16 @@ private boolean areCheckpointsWithFinishedTasksEnabled() { } @Override - public void cleanUp() throws Exception { + public final void cleanUp() throws Exception { LOG.debug( "Cleanup StreamTask (operators closed: {}, cancelled: {})", closedOperators, canceled); + failing = !canceled; + + Exception suppressedException = runAndSuppressThrowable(this::cancelTask, null); Review comment: Yes, you are right. I've changed added `Throwable` argument to `cleanUp`, and only `cancelTask` if it's not null. -- 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