You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
In V load(K key) method of org.ehcache.jcache.JCache class ehcache.acquireWriteLockOnKey(key) lock doesn't released when value exists.
Lock must be acquired if value not exists in cache.
V load(K key) {
V value;
final Element e = ehcache.get(key);
if(e != null) {
return (V)e.getObjectValue();
}
try {
ehcache.acquireWriteLockOnKey(key);
try {
value = cacheLoader.load(key);
} catch (Exception ex) {
throw new CacheLoaderException(ex);
}
if(value != null) {
putWithoutWriter(key, value);
}
} finally{
ehcache.releaseWriteLockOnKey(key);
}
return value;
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In
V load(K key)
method oforg.ehcache.jcache.JCache
classehcache.acquireWriteLockOnKey(key)
lock doesn't released when value exists.Lock must be acquired if value not exists in cache.
The text was updated successfully, but these errors were encountered: