We're updating the issue view to help you get more done. 

Unhandled CacheException from Infinispan

Description

During load testing, a CacheException appears. This should be handled gracefully.

Caused by: org.hibernate.cache.CacheException: org.infinispan.CacheException: java.lang.InterruptedException
at org.hibernate.cache.infinispan.util.CacheAdapterImpl.get(CacheAdapterImpl.java:82) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.cache.infinispan.impl.BaseRegion.get(BaseRegion.java:218) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.cache.infinispan.timestamp.TimestampsRegionImpl.get(TimestampsRegionImpl.java:72) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.cache.UpdateTimestampsCache.isUpToDate(UpdateTimestampsCache.java:113) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.cache.StandardQueryCache.isUpToDate(StandardQueryCache.java:185) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:135) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2361) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2309) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.loader.Loader.list(Loader.java:2268) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:890) ~[hibernate-core-3.6.7.Final.jar:3.6.7.Final]
at my.code.XYZ
... 30 common frames omitted
Caused by: org.infinispan.CacheException: java.lang.InterruptedException
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:282) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.CacheImpl.get(CacheImpl.java:242) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.AbstractDelegatingCache.get(AbstractDelegatingCache.java:250) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.hibernate.cache.infinispan.util.CacheAdapterImpl.get(CacheAdapterImpl.java:80) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final]
... 45 common frames omitted
Caused by: java.lang.InterruptedException: null
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireNanos(Unknown Source) ~[na:1.6.0_25]
at java.util.concurrent.locks.ReentrantLock.tryLock(Unknown Source) ~[na:1.6.0_25]
at org.infinispan.util.concurrent.locks.containers.AbstractPerEntryLockContainer.acquireLock(AbstractPerEntryLockContainer.java:71) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.util.concurrent.locks.LockManagerImpl.lockAndRecord(LockManagerImpl.java:82) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.container.EntryFactoryImpl.acquireLock(EntryFactoryImpl.java:232) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:133) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeededAndUpdateStats(CacheLoaderInterceptor.java:218) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.CacheLoaderInterceptor.visitGetKeyValueCommand(CacheLoaderInterceptor.java:90) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:133) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:90) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.MarshalledValueInterceptor.visitGetKeyValueCommand(MarshalledValueInterceptor.java:189) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:201) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:192) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:84) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:133) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:90) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.IsMarshallableInterceptor.visitGetKeyValueCommand(IsMarshallableInterceptor.java:80) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:104) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:64) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:90) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:119) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:133) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.hibernate.cache.infinispan.impl.ClassLoaderAwareCache$ClassLoaderAwareCommandInterceptor.handleDefault(ClassLoaderAwareCache.java:79) ~[hibernate-infinispan-3.6.7.Final.jar:3.6.7.Final]
at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:90) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:61) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:274) ~[infinispan-core-5.0.1.FINAL.jar:5.0.1.FINAL]
... 48 common frames omitted

Environment

Hibernate 3.6.7, PostgreSQL 9.0, Infinispan 5.0.1,

Status

Assignee

Unassigned

Reporter

M-A

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

3.6.7

Priority

Major