Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3389A2004A1 for ; Thu, 10 Aug 2017 01:59:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3043616A572; Wed, 9 Aug 2017 23:59:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 79A9D16A573 for ; Thu, 10 Aug 2017 01:59:47 +0200 (CEST) Received: (qmail 92467 invoked by uid 500); 9 Aug 2017 23:59:46 -0000 Mailing-List: contact commits-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list commits@geode.apache.org Received: (qmail 92450 invoked by uid 99); 9 Aug 2017 23:59:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2017 23:59:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D98BFE382D; Wed, 9 Aug 2017 23:59:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: zhouxj@apache.org To: commits@geode.apache.org Message-Id: <588cb083a3984cb9b5e7cd1c59e68a5a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: geode git commit: GEODE-3304: when colocated child bucket is destroyed, it should not impact its parent bucket's creation. Date: Wed, 9 Aug 2017 23:59:45 +0000 (UTC) archived-at: Wed, 09 Aug 2017 23:59:48 -0000 Repository: geode Updated Branches: refs/heads/feature/GEODE-3304 [created] 53e27cf21 GEODE-3304: when colocated child bucket is destroyed, it should not impact its parent bucket's creation. Project: http://git-wip-us.apache.org/repos/asf/geode/repo Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/53e27cf2 Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/53e27cf2 Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/53e27cf2 Branch: refs/heads/feature/GEODE-3304 Commit: 53e27cf21f9c4285d2079ccc7f07fb688e097828 Parents: 1efbf58 Author: zhouxh Authored: Wed Aug 9 16:55:41 2017 -0700 Committer: zhouxh Committed: Wed Aug 9 16:55:41 2017 -0700 ---------------------------------------------------------------------- .../geode/internal/cache/PartitionedRegionDataStore.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/geode/blob/53e27cf2/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java ---------------------------------------------------------------------- diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java index a63a7dd..8662edc 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java @@ -2881,8 +2881,15 @@ public class PartitionedRegionDataStore implements HasCachePerfStats { } if ((isDiskRecovery || pr.isInitialized()) && (pr.getDataStore().isColocationComplete(bucketId))) { - grab = pr.getDataStore().grabFreeBucketRecursively(bucketId, pr, moveSource, - forceCreation, replaceOffineData, isRebalance, creationRequestor, isDiskRecovery); + try { + grab = pr.getDataStore().grabFreeBucketRecursively(bucketId, pr, moveSource, + forceCreation, replaceOffineData, isRebalance, creationRequestor, isDiskRecovery); + } catch (RegionDestroyedException rde) { + logger.info( + "Creating colocated child bucket region " + this.partitionedRegion.getFullPath() + + " bucketId=" + bucketId + " failed, but not to stop create parent bucket.", + rde); + } if (!grab.nowExists()) { if (logger.isDebugEnabled()) { logger.debug("Failed grab for bucketId = {}{}{}", this.partitionedRegion.getPRId(),