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



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java
##########
@@ -646,6 +646,10 @@ public String toString() {
                 }
 
                 final InputChannel inputChannel = inputChannelOpt.get();
+                if (inputChannel.isReleased()) {

Review comment:
       At this point it's probably more plausible to just return empty on 
`inputChannel.getNextBuffer()` to avoid reading the `AtomicBoolean` twice.




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