5 Replies Latest reply on Jan 12, 2016 10:42 PM by valsaraj viswanathan

    Infinispan TimeoutException with hibernate

    valsaraj viswanathan Master

      I am getting following error in wildfly-8.2.0 log:

      ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (Thread-3467 (HornetQ-client-global-threads-481331925)) ISPN000136: Execution error:

      org.infinispan.util.concurrent.TimeoutException: Unable to acquire lock after [15 seconds] on key [org.app.entity.User#7673074] for requestor [GlobalTransaction:<app-node-01/hibernate>:852914:local]! Lock held by [GlobalTransaction:<app-node-01/hibernate>:853192:local]

        at org.infinispan.util.concurrent.locks.LockManagerImpl.lock(LockManagerImpl.java:198)

        at org.infinispan.util.concurrent.locks.LockManagerImpl.acquireLock(LockManagerImpl.java:171)

        at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockKeyAndCheckOwnership(AbstractTxLockingInterceptor.java:169)

        at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockAndRegisterBackupLock(AbstractTxLockingInterceptor.java:98)

        at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitClearCommand(PessimisticLockingInterceptor.java:194)

        at org.infinispan.commands.write.ClearCommand.acceptVisitor(ClearCommand.java:38)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)

        at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)

        at org.infinispan.commands.AbstractVisitor.visitClearCommand(AbstractVisitor.java:47)

        at org.infinispan.commands.write.ClearCommand.acceptVisitor(ClearCommand.java:38)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)

        at org.infinispan.interceptors.TxInterceptor.enlistWriteAndInvokeNext(TxInterceptor.java:255)

        at org.infinispan.interceptors.TxInterceptor.visitClearCommand(TxInterceptor.java:206)

        at org.infinispan.commands.write.ClearCommand.acceptVisitor(ClearCommand.java:38)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)

        at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)

        at org.infinispan.commands.AbstractVisitor.visitClearCommand(AbstractVisitor.java:47)

        at org.infinispan.commands.write.ClearCommand.acceptVisitor(ClearCommand.java:38)

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)

        at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110)

        at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73)

        at org.infinispan.commands.AbstractVisitor.visitClearCommand(AbstractVisitor.java:47)

        at org.infinispan.commands.write.ClearCommand.acceptVisitor(ClearCommand.java:38)

        at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)

        at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1306)

        at org.infinispan.CacheImpl.clearInternal(CacheImpl.java:443)

        at org.infinispan.CacheImpl.clear(CacheImpl.java:438)

        at org.infinispan.CacheImpl.clear(CacheImpl.java:433)

        at org.infinispan.AbstractDelegatingCache.clear(AbstractDelegatingCache.java:291)

        at org.hibernate.cache.infinispan.access.TransactionalAccessDelegate.removeAll(TransactionalAccessDelegate.java:223) [hibernate-infinispan-4.3.7.Final.jar:4.3.7.Final]

        at org.hibernate.cache.infinispan.entity.TransactionalAccess.removeAll(TransactionalAccess.java:84) [hibernate-infinispan-4.3.7.Final.jar:4.3.7.Final]

       

      What will be the impact of this? Which section and attributes we need to modify to fix this? Please advice.