You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/27 14:47:11 UTC

[GitHub] [flink] zhijiangW commented on a change in pull request #11219: [FLINK-16257][network] Remove useless ResultPartitionID from AddCredit message

zhijiangW commented on a change in pull request #11219: [FLINK-16257][network] Remove useless ResultPartitionID from AddCredit message
URL: https://github.com/apache/flink/pull/11219#discussion_r385166074
 
 

 ##########
 File path: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyMessage.java
 ##########
 @@ -666,10 +663,7 @@ ByteBuf write(ByteBufAllocator allocator) throws IOException {
 			ByteBuf result = null;
 
 			try {
-				result = allocateBuffer(allocator, ID, 16 + 16 + 4 + 16);
-
-				partitionId.getPartitionId().writeTo(result);
-				partitionId.getProducerId().writeTo(result);
+				result = allocateBuffer(allocator, ID, 4 + 16);
 
 Review comment:
   Yes, it seems more readable for this change, but not quite relevant with this PR purpose.
   After double checking the codes, there are many other places to take the current way in this class. So I might consider this change as a separate issue for unification future.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services