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



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/checkpointing/SingleCheckpointBarrierHandler.java
##########
@@ -126,69 +202,38 @@ public void processBarrier(CheckpointBarrier barrier, 
InputChannelInfo channelIn
 
         if (currentCheckpointId > barrierId
                 || (currentCheckpointId == barrierId && 
!isCheckpointPending())) {
-            controller.obsoleteBarrierReceived(channelInfo, barrier);
             return;
         }
 
-        checkSubsumedCheckpoint(barrier);
+        checkNewCheckpoint(barrier);
 
-        if (numBarriersReceived == 0) {
+        if (numBarriersReceived++ == 0) {

Review comment:
       Actually it is needed for the `Context::allBarriersReceived`, therefore 
I would not move it out of the commit.




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