Github user NicoK commented on a diff in the pull request: https://github.com/apache/flink/pull/4552#discussion_r161568012 --- Diff: flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartitionTest.java --- @@ -119,6 +119,7 @@ public void testBasicPipelinedProduceConsumeLogic() throws Exception { verify(listener, times(1)).notifyBuffersAvailable(eq(1L)); // ...and one available result + assertFalse(view.nextBufferIsEvent()); --- End diff -- we should test this everywhere we access `getNextBuffer()` or add buffers via `add()` - also if `getNextBuffer()` is `null` or before even requesting anything
---