azagrebin commented on a change in pull request #8090: [FLINK-12067][network] 
Refactor the constructor of NetworkEnvironment
URL: https://github.com/apache/flink/pull/8090#discussion_r272080191
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerServices.java
 ##########
 @@ -616,10 +394,9 @@ public static long calculateHeapSizeMB(long 
totalJavaMemorySizeMB, Configuration
                Preconditions.checkArgument(totalJavaMemorySizeMB > 0);
 
                // subtract the Java memory used for network buffers (always 
off-heap)
-               final long networkBufMB =
-                       calculateNetworkBufferMemory(
-                               totalJavaMemorySizeMB << 20, // megabytes to 
bytes
-                               config) >> 20; // bytes to megabytes
+               final long networkBufMB = 
NetworkEnvironmentConfiguration.calculateNetworkBufferMemory(
 
 Review comment:
   I think so, I created 
[FLINK-12110](https://issues.apache.org/jira/browse/FLINK-12110) to track it.

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