Repository: camel Updated Branches: refs/heads/camel-2.15.x 08d97d879 -> a092bb3cb refs/heads/camel-2.16.x b7624cb81 -> c7e57023e refs/heads/master ea647c7d5 -> 064fe8b10
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/064fe8b1 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/064fe8b1 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/064fe8b1 Branch: refs/heads/master Commit: 064fe8b10d05cd1c3d4f50cecd4662053006f1c5 Parents: ca28bf5 Author: Frederic Gendebien <frederic.gendeb...@gmail.com> Authored: Sat Feb 27 20:36:50 2016 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Feb 29 08:24:46 2016 +0100 ---------------------------------------------------------------------- .../aggregate/hazelcast/HazelcastAggregationRepository.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/064fe8b1/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 a230c8c..530bd8c 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 @@ -408,10 +408,7 @@ public class HazelcastAggregationRepository extends ServiceSupport @Override protected void doStop() throws Exception { - if (useRecovery) { - persistedCache.clear(); - } - cache.clear(); + //noop if (useLocalHzInstance) { hzInstance.getLifecycleService().shutdown(); }