Repository: camel Updated Branches: refs/heads/camel-2.18.x b803badce -> 88e43af23
CAMEL-11540: Fixed issue with turning off ProducerCache Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/74b4287a Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/74b4287a Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/74b4287a Branch: refs/heads/camel-2.18.x Commit: 74b4287a3ae4afd21b01e5209807dac454eaf324 Parents: b803bad Author: Saravanakumar Selvaraj <ssara...@ssaravan.pnq.csb> Authored: Thu Jul 13 01:04:53 2017 +0530 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Thu Jul 13 08:30:26 2017 +0200 ---------------------------------------------------------------------- camel-core/src/main/java/org/apache/camel/util/LRUCache.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/74b4287a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java index dda974f..db1c1b8 100644 --- a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java +++ b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java @@ -72,7 +72,8 @@ public class LRUCache<K, V> implements Map<K, V>, RemovalListener<K, V>, Seriali * @throws IllegalArgumentException if the initial capacity is negative */ public LRUCache(int initialCapacity, int maximumCacheSize) { - this(initialCapacity, maximumCacheSize, true); + //Do not stop service if ConcurrentLinkedHashMap try to evict entry when its max capacity is zero. + this(initialCapacity, maximumCacheSize, maximumCacheSize>0); } /**