Return-Path: X-Original-To: apmail-geode-issues-archive@minotaur.apache.org Delivered-To: apmail-geode-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5482C18977 for ; Fri, 14 Aug 2015 21:24:48 +0000 (UTC) Received: (qmail 28899 invoked by uid 500); 14 Aug 2015 21:24:48 -0000 Delivered-To: apmail-geode-issues-archive@geode.apache.org Received: (qmail 28870 invoked by uid 500); 14 Aug 2015 21:24:48 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 28861 invoked by uid 99); 14 Aug 2015 21:24:48 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 21:24:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C3D721AA073 for ; Fri, 14 Aug 2015 21:24:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.774 X-Spam-Level: * X-Spam-Status: No, score=1.774 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id U9AsEvpwMjYr for ; Fri, 14 Aug 2015 21:24:47 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id BEF8E428F6 for ; Fri, 14 Aug 2015 21:24:46 +0000 (UTC) Received: (qmail 28020 invoked by uid 99); 14 Aug 2015 21:24:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2015 21:24:46 +0000 Date: Fri, 14 Aug 2015 21:24:46 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-220) DistributedNoAckRegionOffHeapDUnitTest.testRemoteCacheWriter fails intermittently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)