You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2015/09/23 22:46:04 UTC

[jira] [Commented] (GEODE-361) RegionReliabilityDistNoAckDUnitTest.testFullAccessWithLocalRegionExpiration intermittently fails

    [ https://issues.apache.org/jira/browse/GEODE-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905214#comment-14905214 ] 

Darrel Schneider commented on GEODE-361:
----------------------------------------

Same test problem here:
{code}
at com.gemstone.gemfire.cache30.RegionReliabilityTestCase.testLimitedAccessWithLocalRegionExpiration(RegionReliabilityTestCase.java:845)
{code}


> RegionReliabilityDistNoAckDUnitTest.testFullAccessWithLocalRegionExpiration intermittently fails
> ------------------------------------------------------------------------------------------------
>
>                 Key: GEODE-361
>                 URL: https://issues.apache.org/jira/browse/GEODE-361
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Minor
>              Labels: CI
>
> {code}
> junit.framework.AssertionFailedError
> 	at junit.framework.Assert.fail(Assert.java:55)
> 	at junit.framework.Assert.assertTrue(Assert.java:22)
> 	at junit.framework.Assert.assertTrue(Assert.java:31)
> 	at junit.framework.TestCase.assertTrue(TestCase.java:201)
> 	at com.gemstone.gemfire.cache30.RegionReliabilityTestCase.testFullAccessWithLocalRegionExpiration(RegionReliabilityTestCase.java:1003)
> {code}
> The test is scheduling a region to expire after 1 second. it then sleeps for 2 and asserts that it has to have expired.
> The test needs to be changed to use a wait criteria. It would also be good to change to test to use a millisecond based expiration clock instead second based so the test does not waste time sleeping.
> {code}
>     AttributesMutator mutator = region.getAttributesMutator();
>     mutator.setRegionTimeToLive(
>       new ExpirationAttributes(1, ExpirationAction.LOCAL_DESTROY));
>       
>     // sleep and make sure region does expire
>     sleep(2000);
>     assertTrue(region.isDestroyed());
>  {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)