geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [geode] branch develop updated: GEODE-3555: proper new client protocol closure with more than max conns.
Date Fri, 08 Sep 2017 17:02:54 GMT
This is an automated email from the ASF dual-hosted git repository.

bschuchardt pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 97f2921  GEODE-3555: proper new client protocol closure with more than max conns.
97f2921 is described below

commit 97f2921ce4565bfc092dffd97e924c952623c9e2
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
AuthorDate: Fri Sep 8 10:01:17 2017 -0700

    GEODE-3555: proper new client protocol closure with more than max conns.
    
    There was a problem with the configuration of a cache in the new test
    method added for this ticket.
---
 .../apache/geode/protocol/RoundTripCacheConnectionJUnitTest.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/geode-protobuf/src/test/java/org/apache/geode/protocol/RoundTripCacheConnectionJUnitTest.java
b/geode-protobuf/src/test/java/org/apache/geode/protocol/RoundTripCacheConnectionJUnitTest.java
index 5a46d4d..cc15e4f 100644
--- a/geode-protobuf/src/test/java/org/apache/geode/protocol/RoundTripCacheConnectionJUnitTest.java
+++ b/geode-protobuf/src/test/java/org/apache/geode/protocol/RoundTripCacheConnectionJUnitTest.java
@@ -292,10 +292,12 @@ public class RoundTripCacheConnectionJUnitTest {
 
   @Test
   public void testNewProtocolRespectsMaxConnectionLimit() throws IOException, InterruptedException
{
-    cache.close();
+    cache.getDistributedSystem().disconnect();
 
     CacheFactory cacheFactory = new CacheFactory();
-    Cache cache = cacheFactory.create();
+    cacheFactory.set(ConfigurationProperties.LOCATORS, "");
+    cacheFactory.set(ConfigurationProperties.MCAST_PORT, "0");
+    cache = cacheFactory.create();
 
     CacheServer cacheServer = cache.addCacheServer();
     final int cacheServerPort = AvailablePortHelper.getRandomAvailableTCPPort();

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <commits@geode.apache.org>'].

Mime
View raw message