pnowojski commented on a change in pull request #12261:
URL: https://github.com/apache/flink/pull/12261#discussion_r428643075



##########
File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannelTest.java
##########
@@ -1010,6 +1011,56 @@ public void testConcurrentRecycleAndRelease2() throws 
Exception {
                }
        }
 
+       @Test
+       public void testConcurrentGetNextBufferAndRelease() throws Exception {

Review comment:
       I'm not a fan of such concurrency tests, I wouldn't be personally adding 
them I think, but you are right - single threaded unit test wouldn't reproduce 
this issue because of `checkState(!isReleased.get())`.

##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
##########
@@ -181,6 +181,14 @@ void retriggerSubpartitionRequest(int subpartitionIndex) 
throws IOException {
                        moreAvailable = !receivedBuffers.isEmpty();
                }
 
+               if (next == null) {

Review comment:
       Ops, sorry, yes it's obvious, I don't know why I've missed it 😳 




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


Reply via email to