From c50e23e0650d579653ea3a5030d0ebc2e3d15aa9 Mon Sep 17 00:00:00 2001 From: Tatyana Valkevych Date: Tue, 14 Apr 2015 16:12:54 +0000 Subject: [PATCH] Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud) 101749: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud) 101638: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.2) 101401: Merged V4.1-BUG-FIX (4.1.11) to V4.2-BUG-FIX (4.2.5) 101241: Merged DEV to V4.1-BUG-FIX (4.1.11) 101120 : MNT-13769: 'org.alfresco.authenticationTransactionalCache' is full (100) - Logging level was changed git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@101851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/cache/TransactionalCache.java | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/repo/cache/TransactionalCache.java b/source/java/org/alfresco/repo/cache/TransactionalCache.java index 84a78d6411..ec154ae041 100644 --- a/source/java/org/alfresco/repo/cache/TransactionalCache.java +++ b/source/java/org/alfresco/repo/cache/TransactionalCache.java @@ -731,9 +731,17 @@ public class TransactionalCache // data by clearing the shared cache after the transaction. Also, the // shared cache needs to be ignored for the rest of the transaction. txnData.isClearOn = true; - if (!txnData.haveIssuedFullWarning && logger.isWarnEnabled()) + if (!txnData.haveIssuedFullWarning) { - logger.warn("Transactional update cache '" + name + "' is full (" + maxCacheSize + ")."); + if (logger.isInfoEnabled()) + { + Exception e = new Exception("Stack: "); + logger.info("Transactional update cache '" + name + "' is full (" + maxCacheSize + ").", e); + } + else if (logger.isWarnEnabled()) + { + logger.warn("Transactional update cache '" + name + "' is full (" + maxCacheSize + ")."); + } txnData.haveIssuedFullWarning = true; } } @@ -833,9 +841,17 @@ public class TransactionalCache // data by clearing the shared cache after the transaction. Also, the // shared cache needs to be ignored for the rest of the transaction. txnData.isClearOn = true; - if (!txnData.haveIssuedFullWarning && logger.isWarnEnabled()) + if (!txnData.haveIssuedFullWarning) { - logger.warn("Transactional removal cache '" + name + "' is full (" + maxCacheSize + ")."); + if (logger.isInfoEnabled()) + { + Exception e = new Exception("Stack: "); + logger.info("Transactional removal cache '" + name + "' is full (" + maxCacheSize + ").", e); + } + else if (logger.isWarnEnabled()) + { + logger.warn("Transactional removal cache '" + name + "' is full (" + maxCacheSize + ")."); + } txnData.haveIssuedFullWarning = true; } }