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

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java
 
b/flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java
index ed987d677d8..96e289dbf5c 100644
--- 
a/flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java
+++ 
b/flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java
@@ -32,6 +32,7 @@
 import org.apache.flink.configuration.Configuration;
 import org.apache.flink.configuration.HighAvailabilityOptions;
 import org.apache.flink.configuration.JobManagerOptions;
+import org.apache.flink.configuration.RestOptions;
 import org.apache.flink.configuration.TaskManagerOptions;
 import org.apache.flink.runtime.client.JobStatusMessage;
 import org.apache.flink.runtime.clusterframework.ApplicationStatus;
@@ -116,6 +117,7 @@ public void testCancelingOnProcessFailure() throws 
Exception {
                config.setInteger(TaskManagerOptions.NUM_TASK_SLOTS, 2);
                config.setString(TaskManagerOptions.MANAGED_MEMORY_SIZE, "4m");
                config.setInteger(TaskManagerOptions.NETWORK_NUM_BUFFERS, 100);
+               config.setInteger(RestOptions.PORT, 0);
 
                final RpcService rpcService = 
AkkaRpcServiceUtils.createRpcService("localhost", 0, config);
                final int jobManagerPort = rpcService.getPort();


 

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