AHeise commented on a change in pull request #12460: URL: https://github.com/apache/flink/pull/12460#discussion_r435856373
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/CheckpointBarrierUnaligner.java ########## @@ -387,12 +378,28 @@ synchronized void resetReceivedBarriers(long checkpointId) { return allBarriersReceivedFuture; } - synchronized void onChannelClosed() { + synchronized boolean onChannelClosed() throws IOException { numOpenChannels--; + + if (numBarriersReceived > 0) { + resetReceivedBarriers(); + notifyAbort(new CheckpointException(CheckpointFailureReason.CHECKPOINT_DECLINED_INPUT_END_OF_STREAM)); Review comment: Okay, I haven't considered the different checkpoint ids, so leave as is. ---------------------------------------------------------------- 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