geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gosulli...@apache.org
Subject [geode] branch develop updated: GEODE-3580: patch test to avoid the current failure. (#774)
Date Wed, 13 Sep 2017 17:16:27 GMT
This is an automated email from the ASF dual-hosted git repository.

gosullivan 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 cba6c4f  GEODE-3580: patch test to avoid the current failure. (#774)
cba6c4f is described below

commit cba6c4f70014e1ef63aa492ce559059af5be6bd1
Author: galen-pivotal <gosullivan@pivotal.io>
AuthorDate: Wed Sep 13 10:16:25 2017 -0700

    GEODE-3580: patch test to avoid the current failure. (#774)
    
    When a cache has already been created and closed in the current JVM,
    `TypeRegistry` will have a flag set that stops a distributed system from
    sending messages. This means we can't connect to a distributed system,
    even though there doesn't seem to be any reason to disallow it. This is
    to stop the test failing; a real fix will come later.
---
 .../internal/deadlock/GemFireDeadlockDetectorDUnitTest.java           | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/geode-core/src/test/java/org/apache/geode/distributed/internal/deadlock/GemFireDeadlockDetectorDUnitTest.java
b/geode-core/src/test/java/org/apache/geode/distributed/internal/deadlock/GemFireDeadlockDetectorDUnitTest.java
index 4a03c2d..d71b7e1 100644
--- a/geode-core/src/test/java/org/apache/geode/distributed/internal/deadlock/GemFireDeadlockDetectorDUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/distributed/internal/deadlock/GemFireDeadlockDetectorDUnitTest.java
@@ -26,6 +26,7 @@ import org.apache.geode.distributed.DistributedLockService;
 import org.apache.geode.distributed.DistributedSystemDisconnectedException;
 import org.apache.geode.distributed.LockServiceDestroyedException;
 import org.apache.geode.distributed.internal.membership.InternalDistributedMember;
+import org.apache.geode.pdx.internal.TypeRegistry;
 import org.apache.geode.test.dunit.Assert;
 import org.apache.geode.test.dunit.AsyncInvocation;
 import org.apache.geode.test.dunit.Host;
@@ -87,6 +88,7 @@ public class GemFireDeadlockDetectorDUnitTest extends JUnit4CacheTestCase
{
     Host host = Host.getHost(0);
     VM vm0 = host.getVM(0);
     VM vm1 = host.getVM(1);
+    TypeRegistry.init();
 
     // Make sure a deadlock from a previous test is cleared.
     disconnectAllFromDS();
@@ -108,6 +110,7 @@ public class GemFireDeadlockDetectorDUnitTest extends JUnit4CacheTestCase
{
     Host host = Host.getHost(0);
     VM vm0 = host.getVM(0);
     VM vm1 = host.getVM(1);
+    TypeRegistry.init();
     getSystem();
     InternalDistributedMember member1 = createCache(vm0);
     final InternalDistributedMember member2 = createCache(vm1);
@@ -177,6 +180,7 @@ public class GemFireDeadlockDetectorDUnitTest extends JUnit4CacheTestCase
{
     VM vm0 = host.getVM(0);
     VM vm1 = host.getVM(1);
     getBlackboard().initBlackboard();
+    TypeRegistry.init();
 
     getSystem();
     AsyncInvocation async1 = lockTheDLocks(vm0, "one", "two");

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

Mime
View raw message