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_r279816732
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java
 ##########
 @@ -220,6 +222,8 @@ public void setup() throws IOException {
                jobManagerLeaderRetriever = new 
SettableLeaderRetrievalService();
                
haServices.setResourceManagerLeaderRetriever(resourceManagerLeaderRetriever);
                haServices.setJobMasterLeaderRetriever(jobId, 
jobManagerLeaderRetriever);
+
+               networkEnvironment = new NetworkEnvironmentBuilder().build();
 
 Review comment:
   Actually it is not needed to call start in these tests, because the start 
would only make `NettyServer` to bind one port to listen and it would not 
change any internal state. The `NettyServer` is not really needed in these 
tests. Certainly it would no harm if calling start always. Do you think we 
should do that in these tests?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to