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_r384852044
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyMessage.java
 ##########
 @@ -329,18 +334,12 @@ void releaseBuffer() {
 
                @Override
                ByteBuf write(ByteBufAllocator allocator) throws IOException {
-                       // receiver ID (16), sequence number (4), backlog (4), 
isBuffer (1), isCompressed (1), buffer size (4)
-                       final int messageHeaderLength = 16 + 4 + 4 + 1 + 1 + 4;
-
                        ByteBuf headerBuf = null;
                        try {
-                               if (buffer instanceof Buffer) {
-                                       // in order to forward the buffer to 
netty, it needs an allocator set
 
 Review comment:
   Added the comment.

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