[52/62] [abbrv] incubator-geode git commit: GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

2016-02-11 Thread jensdeppe
GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

* Set cacheserver port to 'zero' in-order for system to pick-up random port 
instead of using AvailablePortHelper.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/8db793d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/8db793d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/8db793d9

Branch: refs/heads/feature/GEODE-17
Commit: 8db793d9dc55eb73022980deda2626e04c83868c
Parents: d232e25
Author: Sai Boorlagadda 
Authored: Mon Feb 8 14:29:51 2016 -0800
Committer: Darrel Schneider 
Committed: Tue Feb 9 10:55:33 2016 -0800

--
 .../cache/management/MemoryThresholdsOffHeapDUnitTest.java   | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8db793d9/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
--
diff --git 
a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
 
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
index 4a205f3..5c65b1a 100644
--- 
a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
+++ 
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
@@ -245,14 +245,12 @@ public class MemoryThresholdsOffHeapDUnitTest extends 
ClientServerTestCase {
 final VM server1 = host.getVM(0);
 final VM server2 = host.getVM(1);
 
-final int[] ports = AvailablePortHelper.getRandomAvailableTCPPorts(2);
-final int port1 = ports[0];
-final int port2 = ports[1];
 final String regionName = "offHeapDisabledThresholds";
 
-startCacheServer(server1, port1, 0f, 0f,
+//set port to 0 in-order for system to pickup a random port.
+startCacheServer(server1, 0, 0f, 0f,
 regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
-startCacheServer(server2, port2, 0f, 0f,
+startCacheServer(server2, 0, 0f, 0f,
 regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
 
 registerTestMemoryThresholdListener(server1);



[52/61] [abbrv] incubator-geode git commit: GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

2016-02-10 Thread dschneider
GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

* Set cacheserver port to 'zero' in-order for system to pick-up random port 
instead of using AvailablePortHelper.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/8db793d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/8db793d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/8db793d9

Branch: refs/heads/feature/GEODE-831
Commit: 8db793d9dc55eb73022980deda2626e04c83868c
Parents: d232e25
Author: Sai Boorlagadda 
Authored: Mon Feb 8 14:29:51 2016 -0800
Committer: Darrel Schneider 
Committed: Tue Feb 9 10:55:33 2016 -0800

--
 .../cache/management/MemoryThresholdsOffHeapDUnitTest.java   | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8db793d9/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
--
diff --git 
a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
 
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
index 4a205f3..5c65b1a 100644
--- 
a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
+++ 
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
@@ -245,14 +245,12 @@ public class MemoryThresholdsOffHeapDUnitTest extends 
ClientServerTestCase {
 final VM server1 = host.getVM(0);
 final VM server2 = host.getVM(1);
 
-final int[] ports = AvailablePortHelper.getRandomAvailableTCPPorts(2);
-final int port1 = ports[0];
-final int port2 = ports[1];
 final String regionName = "offHeapDisabledThresholds";
 
-startCacheServer(server1, port1, 0f, 0f,
+//set port to 0 in-order for system to pickup a random port.
+startCacheServer(server1, 0, 0f, 0f,
 regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
-startCacheServer(server2, port2, 0f, 0f,
+startCacheServer(server2, 0, 0f, 0f,
 regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
 
 registerTestMemoryThresholdListener(server1);



incubator-geode git commit: GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

2016-02-09 Thread dschneider
Repository: incubator-geode
Updated Branches:
  refs/heads/develop d232e2594 -> 8db793d9d


GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

* Set cacheserver port to 'zero' in-order for system to pick-up random port 
instead of using AvailablePortHelper.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/8db793d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/8db793d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/8db793d9

Branch: refs/heads/develop
Commit: 8db793d9dc55eb73022980deda2626e04c83868c
Parents: d232e25
Author: Sai Boorlagadda 
Authored: Mon Feb 8 14:29:51 2016 -0800
Committer: Darrel Schneider 
Committed: Tue Feb 9 10:55:33 2016 -0800

--
 .../cache/management/MemoryThresholdsOffHeapDUnitTest.java   | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8db793d9/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
--
diff --git 
a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
 
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
index 4a205f3..5c65b1a 100644
--- 
a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
+++ 
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
@@ -245,14 +245,12 @@ public class MemoryThresholdsOffHeapDUnitTest extends 
ClientServerTestCase {
 final VM server1 = host.getVM(0);
 final VM server2 = host.getVM(1);
 
-final int[] ports = AvailablePortHelper.getRandomAvailableTCPPorts(2);
-final int port1 = ports[0];
-final int port2 = ports[1];
 final String regionName = "offHeapDisabledThresholds";
 
-startCacheServer(server1, port1, 0f, 0f,
+//set port to 0 in-order for system to pickup a random port.
+startCacheServer(server1, 0, 0f, 0f,
 regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
-startCacheServer(server2, port2, 0f, 0f,
+startCacheServer(server2, 0, 0f, 0f,
 regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
 
 registerTestMemoryThresholdListener(server1);