mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed up full-cache warnings
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17061 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -441,6 +441,11 @@ public class TransactionalCache<K extends Serializable, V extends Object>
|
|||||||
// data by clearing the shared cache after the transaction. Also, the
|
// data by clearing the shared cache after the transaction. Also, the
|
||||||
// shared cache needs to be ignored for the rest of the transaction.
|
// shared cache needs to be ignored for the rest of the transaction.
|
||||||
txnData.isClearOn = true;
|
txnData.isClearOn = true;
|
||||||
|
if (!txnData.haveIssuedFullWarning && logger.isWarnEnabled())
|
||||||
|
{
|
||||||
|
logger.warn("Transactional update cache '" + name + "' is full (" + maxCacheSize + ").");
|
||||||
|
txnData.haveIssuedFullWarning = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
CacheBucket<V> bucket = null;
|
CacheBucket<V> bucket = null;
|
||||||
if (sharedCache.contains(key))
|
if (sharedCache.contains(key))
|
||||||
@@ -532,11 +537,10 @@ public class TransactionalCache<K extends Serializable, V extends Object>
|
|||||||
// data by clearing the shared cache after the transaction. Also, the
|
// data by clearing the shared cache after the transaction. Also, the
|
||||||
// shared cache needs to be ignored for the rest of the transaction.
|
// shared cache needs to be ignored for the rest of the transaction.
|
||||||
txnData.isClearOn = true;
|
txnData.isClearOn = true;
|
||||||
if (isDebugEnabled)
|
if (!txnData.haveIssuedFullWarning && logger.isWarnEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("In transaction - removal cache reach capacity reached: \n" +
|
logger.warn("Transactional removal cache '" + name + "' is full (" + maxCacheSize + ").");
|
||||||
" cache: " + this + "\n" +
|
txnData.haveIssuedFullWarning = true;
|
||||||
" txn: " + AlfrescoTransactionSupport.getTransactionId());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user