geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darrel Schneider (JIRA)" <>
Subject [jira] [Created] (GEODE-220) DistributedNoAckRegionOffHeapDUnitTest.testRemoteCacheWriter fails intermittently
Date Fri, 14 Aug 2015 21:06:45 GMT
Darrel Schneider created GEODE-220:

             Summary: DistributedNoAckRegionOffHeapDUnitTest.testRemoteCacheWriter fails intermittently
                 Key: GEODE-220
             Project: Geode
          Issue Type: Bug
          Components: tests
            Reporter: Darrel Schneider
            Assignee: Darrel Schneider
            Priority: Minor

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:
          if (region.getAttributes().getOffHeap() && !(region instanceof PartitionedRegion))
            GemFireCacheImpl gfc = (GemFireCacheImpl) getCache();
            SimpleMemoryAllocatorImpl ma = (SimpleMemoryAllocatorImpl) gfc.getOffHeapStore();
            assertEquals(0, ma.getStats().getObjects());

This message was sent by Atlassian JIRA

View raw message