You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/03/30 21:58:31 UTC

[27/50] incubator-usergrid git commit: Use available-port finder to avoid conflicts.

Use available-port finder to avoid conflicts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/9f3bb94d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/9f3bb94d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/9f3bb94d

Branch: refs/heads/two-dot-o-dev
Commit: 9f3bb94ddb16381c425552a4ebf1cb7c23903cab
Parents: 285230f
Author: Dave Johnson <dm...@apigee.com>
Authored: Mon Mar 16 13:47:20 2015 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Mon Mar 16 13:47:20 2015 -0400

----------------------------------------------------------------------
 .../org/apache/usergrid/setup/ConcurrentProcessSingleton.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/9f3bb94d/stack/test-utils/src/main/java/org/apache/usergrid/setup/ConcurrentProcessSingleton.java
----------------------------------------------------------------------
diff --git a/stack/test-utils/src/main/java/org/apache/usergrid/setup/ConcurrentProcessSingleton.java b/stack/test-utils/src/main/java/org/apache/usergrid/setup/ConcurrentProcessSingleton.java
index 66e5d12..c5d9a71 100644
--- a/stack/test-utils/src/main/java/org/apache/usergrid/setup/ConcurrentProcessSingleton.java
+++ b/stack/test-utils/src/main/java/org/apache/usergrid/setup/ConcurrentProcessSingleton.java
@@ -20,6 +20,7 @@
 package org.apache.usergrid.setup;
 
 
+import org.apache.usergrid.persistence.core.util.AvailablePortFinder;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -41,7 +42,7 @@ public class ConcurrentProcessSingleton {
     private static final String TEMP_FILE_PATH =
         "target/surefirelocks/start_barrier-" + System.getProperty( "test.barrier.timestamp", "default" );
 
-    public static final int LOCK_PORT = Integer.parseInt( System.getProperty( "test.lock.port", "10101" ) );
+    public static final int LOCK_PORT = AvailablePortFinder.getNextAvailable();
 
     public static final boolean CLEAN_STORAGE =
         Boolean.parseBoolean( System.getProperty( "test.clean.storage", "false" ) );