From commits-return-27626-archive-asf-public=cust-asf.ponee.io@geode.apache.org Wed Jul 25 18:38:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 041C118062C for ; Wed, 25 Jul 2018 18:38:08 +0200 (CEST) Received: (qmail 90372 invoked by uid 500); 25 Jul 2018 16:38:08 -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 90363 invoked by uid 99); 25 Jul 2018 16:38:08 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2018 16:38:08 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 888CE850E2; Wed, 25 Jul 2018 16:38:07 +0000 (UTC) Date: Wed, 25 Jul 2018 16:38:07 +0000 To: "commits@geode.apache.org" Subject: [geode] branch develop updated: GEODE-5472: avoid a deadlock situation by waiting before creating the region again. (#2186) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153253668657.28052.1972733906329686713@gitbox.apache.org> From: jinmeiliao@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: geode X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Oldrev: ecbe5ce702d713d821b4b9e8abdeeac49a12bbc3 X-Git-Newrev: d3ba33a62767d15820b7d67d5d629e3df1482f75 X-Git-Rev: d3ba33a62767d15820b7d67d5d629e3df1482f75 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. jinmeiliao pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode.git The following commit(s) were added to refs/heads/develop by this push: new d3ba33a GEODE-5472: avoid a deadlock situation by waiting before creating the region again. (#2186) d3ba33a is described below commit d3ba33a62767d15820b7d67d5d629e3df1482f75 Author: jinmeiliao AuthorDate: Wed Jul 25 09:38:02 2018 -0700 GEODE-5472: avoid a deadlock situation by waiting before creating the region again. (#2186) --- .../cache/partitioned/PersistentPartitionedRegionRegressionTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/PersistentPartitionedRegionRegressionTest.java b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/PersistentPartitionedRegionRegressionTest.java index a8ee62f..40a4434 100644 --- a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/PersistentPartitionedRegionRegressionTest.java +++ b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/partitioned/PersistentPartitionedRegionRegressionTest.java @@ -303,8 +303,10 @@ public class PersistentPartitionedRegionRegressionTest implements Serializable { vm1.invoke(() -> checkData(0, 4, "a", partitionedRegionName)); - vm0.invoke(() -> createPartitionedRegion(0, -1, 113, true)); + // wait till cache is completely shutdown before trying to create the region again. otherwise + // deadlock situation might happen. vm0.invoke(() -> await().atMost(2, MINUTES).until(() -> CRASHED.get())); + vm0.invoke(() -> createPartitionedRegion(0, -1, 113, true)); vm0.invoke(() -> checkData(0, 4, "a", partitionedRegionName)); assertThat(vm1.invoke(() -> getBucketList(partitionedRegionName))).isEqualTo(bucketsOnVM1);