[
https://issues.apache.org/jira/browse/GEODE-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anthony Baker updated GEODE-220:
--------------------------------
Fix Version/s: 1.0.0-alpha1
> 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
> Fix For: 1.0.0-alpha1
>
> 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)