akalash commented on a change in pull request #16628:
URL: https://github.com/apache/flink/pull/16628#discussion_r680056105
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyMessage.java
##########
@@ -841,6 +844,52 @@ public String toString() {
}
}
+ /** Message to notify producer about new buffer size. */
+ static class NewBufferSize extends NettyMessage {
+
+ private static final byte ID = 10;
+
+ final long bufferSize;
Review comment:
I don't sure that we should use `long` for the buffer size. As I can see
now `NetworkBuffer#currentSize` or `MemorySegment#size` is `int` so perhaps I
should migrate from `long` to `int`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]