gaoyunhaii commented on a change in pull request #7368: [FLINK-10742][network] 
Let Netty use Flink's buffers directly in credit-based mode
URL: https://github.com/apache/flink/pull/7368#discussion_r388741843
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/CreditBasedPartitionRequestClientHandler.java
 ##########
 @@ -249,7 +248,7 @@ private void decodeMsg(Object msg) throws Throwable {
                        NettyMessage.BufferResponse bufferOrEvent = 
(NettyMessage.BufferResponse) msg;
 
                        RemoteInputChannel inputChannel = 
inputChannels.get(bufferOrEvent.receiverId);
-                       if (inputChannel == null) {
+                       if (inputChannel == null || inputChannel.isReleased()) {
 
 Review comment:
   After some offline discussion, we come to the consistency that the current 
implementation should be able to cover the above case.

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