[ https://issues.apache.org/jira/browse/GEODE-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darrel Schneider closed GEODE-175. ---------------------------------- > ClientServerTransactionDUnitTest.testExpirySuspend_bug45984 fails > intermittently > -------------------------------------------------------------------------------- > > Key: GEODE-175 > URL: https://issues.apache.org/jira/browse/GEODE-175 > Project: Geode > Issue Type: Bug > Reporter: Darrel Schneider > Assignee: Darrel Schneider > Priority: Minor > > The assert that fails is that an entry should no longer exist after a 5 > second pause because of expiration: > DistributedTestCase.pause(5000); > TransactionId tx = getCache().getCacheTransactionManager().suspend(); > // A remote tx will allow expiration to happen on the side that > // is not hosting the tx. But it will not allow an expiration > // initiated on the hosting jvm. > assertFalse(r.containsKey("key")); > The test configures the region with 1 second expiration so it seems like > giving it 4 extra seconds should be plenty. But the test should be rewritten > to use a wait criteria and to use millisecond expiration. > dunit.RMIException: While invoking > com.gemstone.gemfire.internal.cache.RemoteTransactionDUnitTest$134.call in VM > 0 running on Host cc4-rh6.gemstone.com with 4 VMs > at dunit.VM.invoke(VM.java:359) > at dunit.VM.invoke(VM.java:303) > at dunit.VM.invoke(VM.java:271) > at > com.gemstone.gemfire.internal.cache.RemoteTransactionDUnitTest.testExpirySuspend_bug45984(RemoteTransactionDUnitTest.java:4026) > Caused by: junit.framework.AssertionFailedError > at junit.framework.Assert.fail(Assert.java:55) > at junit.framework.Assert.assertTrue(Assert.java:22) > at junit.framework.Assert.assertFalse(Assert.java:39) > at junit.framework.Assert.assertFalse(Assert.java:47) > at junit.framework.TestCase.assertFalse(TestCase.java:219) > at > com.gemstone.gemfire.internal.cache.RemoteTransactionDUnitTest$134.call(RemoteTransactionDUnitTest.java:4040) -- This message was sent by Atlassian JIRA (v6.3.4#6332)