zentol commented on a change in pull request #7327: [FLINK-11180][tests] Fix 
ProcessFailureCancelingITCase.testCancelingOnProcessFailure error by specifying 
a free port
URL: https://github.com/apache/flink/pull/7327#discussion_r242547140
 
 

 ##########
 File path: 
flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java
 ##########
 @@ -117,6 +120,9 @@ public void testCancelingOnProcessFailure() throws 
Exception {
                config.setString(TaskManagerOptions.MANAGED_MEMORY_SIZE, "4m");
                config.setInteger(TaskManagerOptions.NETWORK_NUM_BUFFERS, 100);
 
+               int defaultPort = config.getInteger(RestOptions.PORT);
+               config.setString("rest.port", 
String.valueOf(findFreePort(defaultPort, 100)));
 
 Review comment:
   This should also use `setInteger(RestOptions.PORT, <port>)`

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