flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] zentol commented on a change in pull request #7327: [FLINK-11180][tests] Fix ProcessFailureCancelingITCase.testCancelingOnProcessFailure error by specifying a free port
Date Tue, 18 Dec 2018 14:03:18 GMT
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_r242546417
 
 

 ##########
 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:
   why aren't we simply setting this to 0?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message