rkhachatryan commented on a change in pull request #11507: [FLINK-16587] Add 
basic CheckpointBarrierHandler for unaligned checkpoint
URL: https://github.com/apache/flink/pull/11507#discussion_r408027643
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/io/CheckpointedInputGate.java
 ##########
 @@ -171,6 +176,18 @@ else if (bufferOrEvent.getEvent().getClass() == 
CancelCheckpointMarker.class) {
                }
        }
 
+       public List<Buffer> requestInflightBuffers(long checkpointId, int 
channelIndex) throws IOException {
+               if (((CheckpointBarrierUnaligner) 
barrierHandler).hasInflightData(checkpointId, channelIndex)) {
+                       return 
inputGate.getChannel(channelIndex).requestInflightBuffers(checkpointId);
 
 Review comment:
   I think that `CheckpointBarrierUnaligner.hasInflightData` and the actual 
InflightBuffers in the input channel
   can be inconsistent as they are updated by different threads.
   

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


With regards,
Apache Git Services

Reply via email to