Repository: camel Updated Branches: refs/heads/camel-2.19.x 8dfda87c2 -> 81ddec977
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/d1719f24 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d1719f24 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d1719f24 Branch: refs/heads/camel-2.19.x Commit: d1719f24a937903934200de311a4e02b01fce397 Parents: 8dfda87 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:29:17 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/d1719f24/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); } /**