You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "TanYuxin-tyx (via GitHub)" <gi...@apache.org> on 2023/10/18 12:18:39 UTC
Re: [PR] [FLINK-30473][network] Optimize the InputGate network memory management for TaskManager [flink]
TanYuxin-tyx commented on code in PR #21620:
URL: https://github.com/apache/flink/pull/21620#discussion_r1065922534
##########
flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java:
##########
@@ -213,6 +214,7 @@ public class NettyShuffleEnvironmentOptions {
* Number of extra network buffers to use for each outgoing/incoming gate (result
* partition/input gate).
*/
+ @Deprecated
Review Comment:
OK, removed.
##########
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java:
##########
@@ -282,6 +300,17 @@ public static NettyShuffleEnvironmentConfiguration fromConfiguration(
configuration.getInteger(
NettyShuffleEnvironmentOptions.NETWORK_EXTRA_BUFFERS_PER_GATE);
+ boolean isRequiredMaxBuffersConfigured =
+ configuration.contains(
+ NettyShuffleEnvironmentOptions.NETWORK_READ_BUFFERS_REQUIRED_PER_GATE_MAX);
+
+ int requiredMaxBuffersPerGate =
+ isRequiredMaxBuffersConfigured
+ ? configuration.getInteger(
+ NettyShuffleEnvironmentOptions
+ .NETWORK_READ_BUFFERS_REQUIRED_PER_GATE_MAX)
+ : -1;
Review Comment:
OK, use getOptional instead.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org