Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44B8918C9E for ; Mon, 29 Feb 2016 07:43:49 +0000 (UTC) Received: (qmail 82750 invoked by uid 500); 29 Feb 2016 07:43:49 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 82668 invoked by uid 500); 29 Feb 2016 07:43:49 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 82496 invoked by uid 99); 29 Feb 2016 07:43:49 -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; Mon, 29 Feb 2016 07:43:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E7680E04D7; Mon, 29 Feb 2016 07:43:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Mon, 29 Feb 2016 07:43:50 -0000 Message-Id: <7f8ef5bb358a4d148bb4b97cc08fe03d@git.apache.org> In-Reply-To: <48e6322539d5447baa6cabd02ee6ffc9@git.apache.org> References: <48e6322539d5447baa6cabd02ee6ffc9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/4] camel git commit: Hazelcast :: Aggregation Repository Hazelcast :: Aggregation Repository Removes clear cache operation at stop. As Hazelcast is used in a clustered environment, clearing the cache when the bundle stops prevents other instances running somewhere else to take over the pending aggregations. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c7e57023 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c7e57023 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c7e57023 Branch: refs/heads/camel-2.16.x Commit: c7e57023e177e779ce2b40701a15b7276d0d987a Parents: b7624cb Author: Frederic Gendebien Authored: Sat Feb 27 20:36:50 2016 +0100 Committer: Claus Ibsen Committed: Mon Feb 29 08:43:21 2016 +0100 ---------------------------------------------------------------------- .../aggregate/hazelcast/HazelcastAggregationRepository.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/c7e57023/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java ---------------------------------------------------------------------- diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java b/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java index 65207c2..e4a6723 100644 --- a/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java +++ b/components/camel-hazelcast/src/main/java/org/apache/camel/processor/aggregate/hazelcast/HazelcastAggregationRepository.java @@ -399,10 +399,7 @@ public class HazelcastAggregationRepository extends ServiceSupport @Override protected void doStop() throws Exception { - if (useRecovery) { - persistedCache.clear(); - } - cache.clear(); + //noop if (useLocalHzInstance) { hzInstance.getLifecycleService().shutdown(); }