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



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -535,13 +536,16 @@ public void checkpointStopped(long checkpointId) {
        /**
         * Returns a list of buffers, checking the first n non-priority 
buffers, and skipping all events.
         */
-       private List<Buffer> getInflightBuffersUnsafe(long checkpointId) {
+       private List<Buffer> getInflightBuffersUnsafe(long checkpointId) throws 
CheckpointException {
                assert Thread.holdsLock(receivedBuffers);
 
+               if (checkpointId < lastBarrierId) {
+                       throw new CheckpointException(

Review comment:
       I think this is exactly the case for which `CheckpointException` was 
designed.




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