geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-220) DistributedNoAckRegionOffHeapDUnitTest.testRemoteCacheWriter fails intermittently
Date Fri, 14 Aug 2015 21:24:46 GMT

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

ASF subversion and git services commented on GEODE-220:
-------------------------------------------------------

Commit 8eb6cef8a3428d77d6e8661fda6b2a9292f7f367 in incubator-geode's branch refs/heads/develop
from [~dschneider]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=8eb6cef ]

GEODE-220: Use wait after off-heap destroyRegion


> DistributedNoAckRegionOffHeapDUnitTest.testRemoteCacheWriter fails intermittently
> ---------------------------------------------------------------------------------
>
>                 Key: GEODE-220
>                 URL: https://issues.apache.org/jira/browse/GEODE-220
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> DistributedNoAckRegionOffHeapDUnitTest.testRemoteCacheWriter fails intermittently.
> The intermittent failure is caused by an off-heap region being destroyed and the test
expecting the off-heap stats to be synchronously updated during the destroy.
> off-heap regions release their off-heap references async in a background thread to prevent
dead lock.
> The following assertEquals(0, ...) needs be in a wait criteria:
> {code}
>           region.destroyRegion(arg);
>           if (region.getAttributes().getOffHeap() && !(region instanceof PartitionedRegion))
{
>             GemFireCacheImpl gfc = (GemFireCacheImpl) getCache();
>             SimpleMemoryAllocatorImpl ma = (SimpleMemoryAllocatorImpl) gfc.getOffHeapStore();
>             assertEquals(0, ma.getStats().getObjects());
>           }
> {code}



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

Mime
View raw message