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
This commit is contained in:
Tatyana Valkevych
2015-04-14 16:12:54 +00:00
parent 2952b16710
commit c50e23e065

View File

@@ -731,9 +731,17 @@ public class TransactionalCache<K extends Serializable, V extends Object>
// 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)
{
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<K extends Serializable, V extends Object>
// 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)
{
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;
}
}