zhijiangW commented on a change in pull request #7822: [FLINK-11726][network] 
Refactor the creation of ResultPartition and InputGate into NetworkEnvironment
URL: https://github.com/apache/flink/pull/7822#discussion_r259777125
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/NetworkEnvironment.java
 ##########
 @@ -106,28 +128,32 @@ public NetworkEnvironment(
                        new KvStateRegistry(),
                        null,
                        null,
+                       new IOManagerAsync(),
                        IOManager.IOMode.SYNC,
                        partitionRequestInitialBackoff,
                        partitionRequestMaxBackoff,
                        networkBuffersPerChannel,
                        extraNetworkBuffersPerGate,
+                       false,
                        enableCreditBased);
        }
 
        public NetworkEnvironment(
-               NetworkBufferPool networkBufferPool,
-               ConnectionManager connectionManager,
-               ResultPartitionManager resultPartitionManager,
-               TaskEventDispatcher taskEventDispatcher,
-               KvStateRegistry kvStateRegistry,
-               KvStateServer kvStateServer,
-               KvStateClientProxy kvStateClientProxy,
-               IOMode defaultIOMode,
-               int partitionRequestInitialBackoff,
-               int partitionRequestMaxBackoff,
-               int networkBuffersPerChannel,
-               int extraNetworkBuffersPerGate,
-               boolean enableCreditBased) {
+                       NetworkBufferPool networkBufferPool,
+                       ConnectionManager connectionManager,
+                       ResultPartitionManager resultPartitionManager,
+                       TaskEventDispatcher taskEventDispatcher,
+                       KvStateRegistry kvStateRegistry,
+                       KvStateServer kvStateServer,
+                       KvStateClientProxy kvStateClientProxy,
+                       IOManager ioManager,
+                       IOMode defaultIOMode,
+                       int partitionRequestInitialBackoff,
+                       int partitionRequestMaxBackoff,
+                       int networkBuffersPerChannel,
+                       int extraNetworkBuffersPerGate,
+                       boolean enableNetworkDetailedMetrics,
 
 Review comment:
   Another option might we could pass `NetworkConfiguration` into the 
constructor instead of these specific parameters 
`partitionRequestInitialBackoff`, `partitionRequestMaxBackoff`, 
`networkBuffersPerChannel`, `extraNetworkBuffersPerGate`, 
`enableNetworkDetailedMetrics`, `enableCreditBased`. Then it seems better to 
not change this constructor always to add new parameters, just extend the 
`NetworkConfiguration`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to