Repository: camel Updated Branches: refs/heads/master 177f54cfc -> a7542736a
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/be4e17e9 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/be4e17e9 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/be4e17e9 Branch: refs/heads/master Commit: be4e17e933c3b4370f09e5a6eb5965c3741a1acd Parents: 177f54c 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:18:29 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/be4e17e9/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 41dc71f..d66cd0e 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 @@ -75,7 +75,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); } /**