You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2015/08/26 01:02:19 UTC
incubator-geode git commit: GEODE-233: Don't log a warning about a
RegionDestroyedException
Repository: incubator-geode
Updated Branches:
refs/heads/feature/GEODE-233 [created] c857a3340
GEODE-233: Don't log a warning about a RegionDestroyedException
The ParallelBucketOperator was logging a RegionDestroyedException during
shutdown on region destruction. This is unnecessary noise from the
background thread. The actual user thread will get this exception
because PartitionedRegionRebalanceOperation checks for a destroyed
region after each rebalancing step.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/c857a334
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/c857a334
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/c857a334
Branch: refs/heads/feature/GEODE-233
Commit: c857a3340ab6d68985dafdd8b7a92478b43bba7e
Parents: 01e8b5e
Author: Dan Smith <up...@apache.org>
Authored: Tue Aug 25 15:58:01 2015 -0700
Committer: Dan Smith <up...@apache.org>
Committed: Tue Aug 25 15:58:01 2015 -0700
----------------------------------------------------------------------
.../cache/partitioned/rebalance/ParallelBucketOperator.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/c857a334/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/rebalance/ParallelBucketOperator.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/rebalance/ParallelBucketOperator.java b/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/rebalance/ParallelBucketOperator.java
index acea21a..b5094df 100644
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/rebalance/ParallelBucketOperator.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/rebalance/ParallelBucketOperator.java
@@ -6,6 +6,8 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
+import com.gemstone.gemfire.CancelException;
+import com.gemstone.gemfire.cache.RegionDestroyedException;
import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember;
/**
@@ -78,6 +80,10 @@ public class ParallelBucketOperator implements BucketOperator {
pendingFailure.add(completion);
}
});
+ } catch(CancelException e) {
+ //ignore
+ } catch(RegionDestroyedException e) {
+ //ignore
} finally {
operationSemaphore.release();
}