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



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -469,7 +469,9 @@ public void onBuffer(Buffer buffer, int sequenceNumber, int 
backlog) throws IOEx
 
                        if (notifyReceivedBarrier != null) {
                                receivedCheckpointId = 
notifyReceivedBarrier.getId();
-                               
listener.notifyBarrierReceived(notifyReceivedBarrier, channelInfo);
+                               if (notifyReceivedBarrier.isCheckpoint()) {

Review comment:
       > above receivedCheckpointId < lastRequestedCheckpointId might be 
invalid 
   
   Yes, the intention was to invalidate this condition. 
   So the next data buffer after a *savepoint* barrier doesn't notify the 
listener and doesn't go to `ChannelStateWriter`.
   
   >  to make some unnecessary notifyReceivedBuffer to be spilled in listener.
   
   If the condition is invalidated then the listener is NOT notified.
   




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