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



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/SingleCheckpointBarrierHandler.java
##########
@@ -158,14 +163,16 @@ public void processBarrierAnnouncement(
        @Override
        public void processCancellationBarrier(CancelCheckpointMarker 
cancelBarrier) throws IOException {
                final long cancelledId = cancelBarrier.getCheckpointId();
-               if (currentCheckpointId > cancelledId || (currentCheckpointId 
== cancelledId && numBarriersReceived == 0)) {
-                       return;
+               if (cancelledId >= currentCheckpointId && (cancelledId > 
currentCheckpointId || numBarriersReceived > 0)) {

Review comment:
       I like it!
   




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