You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2016/02/17 15:18:02 UTC

[2/6] flink git commit: [hotfix] Auto-select actor system port in TestingCluster to prevent port collisions

[hotfix] Auto-select actor system port in TestingCluster to prevent port collisions


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/a4e8fcbe
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/a4e8fcbe
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/a4e8fcbe

Branch: refs/heads/master
Commit: a4e8fcbe9e3eacda822282e8a7dfbc5d74d79b34
Parents: 06a42bf
Author: Stephan Ewen <se...@apache.org>
Authored: Wed Feb 17 15:07:42 2016 +0100
Committer: Stephan Ewen <se...@apache.org>
Committed: Wed Feb 17 15:09:13 2016 +0100

----------------------------------------------------------------------
 .../org/apache/flink/runtime/testingUtils/TestingCluster.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/a4e8fcbe/flink-runtime/src/test/scala/org/apache/flink/runtime/testingUtils/TestingCluster.scala
----------------------------------------------------------------------
diff --git a/flink-runtime/src/test/scala/org/apache/flink/runtime/testingUtils/TestingCluster.scala b/flink-runtime/src/test/scala/org/apache/flink/runtime/testingUtils/TestingCluster.scala
index 7b7750a..c72eb50 100644
--- a/flink-runtime/src/test/scala/org/apache/flink/runtime/testingUtils/TestingCluster.scala
+++ b/flink-runtime/src/test/scala/org/apache/flink/runtime/testingUtils/TestingCluster.scala
@@ -59,7 +59,7 @@ class TestingCluster(
   override def generateConfiguration(userConfig: Configuration): Configuration = {
     val cfg = new Configuration()
     cfg.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, "localhost")
-    cfg.setInteger(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, NetUtils.getAvailablePort())
+    cfg.setInteger(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, 0)
     cfg.setInteger(ConfigConstants.TASK_MANAGER_MEMORY_SIZE_KEY, 10)
     cfg.setInteger(ConfigConstants.JOB_MANAGER_WEB_PORT_KEY, -1)
 
@@ -145,7 +145,7 @@ class TestingCluster(
       system,
       hostname,
       Some(tmActorName),
-      Some(createLeaderRetrievalService),
+      Some(createLeaderRetrievalService()),
       numTaskManagers == 1,
       classOf[TestingTaskManager])
   }