3 Replies Latest reply: Sep 7, 2011 4:49 AM by Mircea Markus RSS

Long timeouts on cluster wide lock on Infinispan 5.0.0

Nikita Koksharov Newbie

Hi all!

 

I'am trying to get working culster wide lock in DIST_SYNC cluster from 2 nodes.

But got's the follow error:

 

18.08.2011 15:31:29 org.infinispan.interceptors.InvocationContextInterceptor handleAll

ERROR: ISPN000136: Execution error

org.infinispan.util.concurrent.TimeoutException: Unable to acquire lock after [10 seconds] on key [key] for requestor [GlobalTransaction:<notebook-13677>:1:remote]! Lock held by [GlobalTransaction:<notebook-51303>:998:local]

          at org.infinispan.container.EntryFactoryImpl.acquireLock(EntryFactoryImpl.java:240)

          at org.infinispan.container.EntryFactoryImpl.wrapEntryForWriting(EntryFactoryImpl.java:157)

          at org.infinispan.container.EntryFactoryImpl.wrapEntryForWriting(EntryFactoryImpl.java:109)

          at org.infinispan.interceptors.LockingInterceptor.lockKeysForLockCommand(LockingInterceptor.java:214)

          at org.infinispan.interceptors.LockingInterceptor.visitLockControlCommand(LockingInterceptor.java:192)

          at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:122)

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

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

          at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:154)

          at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:122)

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

          at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:201)

          at org.infinispan.interceptors.TxInterceptor.visitLockControlCommand(TxInterceptor.java:157)

          at org.infinispan.interceptors.DistTxInterceptor.visitLockControlCommand(DistTxInterceptor.java:117)

          at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:122)

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

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

          at org.infinispan.interceptors.InvocationContextInterceptor.visitLockControlCommand(InvocationContextInterceptor.java:69)

          at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:122)

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

          at org.infinispan.commands.control.LockControlCommand.perform(LockControlCommand.java:148)

          at org.infinispan.remoting.InboundInvocationHandlerImpl.handleInternal(InboundInvocationHandlerImpl.java:181)

          at org.infinispan.remoting.InboundInvocationHandlerImpl.handleWithWaitForBlocks(InboundInvocationHandlerImpl.java:195)

          at org.infinispan.remoting.InboundInvocationHandlerImpl.handleWithRetry(InboundInvocationHandlerImpl.java:309)

          at org.infinispan.remoting.InboundInvocationHandlerImpl.handle(InboundInvocationHandlerImpl.java:167)

          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.executeCommand(CommandAwareRpcDispatcher.java:165)

          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:144)

          at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:577)

          at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:488)

          at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:364)

          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:770)

          at org.jgroups.JChannel.up(JChannel.java:1484)

          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1074)

          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:263)

          at org.jgroups.protocols.FRAG2.up(FRAG2.java:189)

          at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)

          at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)

          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:908)

          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:246)

          at org.jgroups.protocols.UNICAST.up(UNICAST.java:309)

          at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:805)

          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:667)

          at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:133)

          at org.jgroups.protocols.FD.up(FD.java:275)

          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:275)

          at org.jgroups.protocols.MERGE2.up(MERGE2.java:209)

          at org.jgroups.protocols.Discovery.up(Discovery.java:293)

          at org.jgroups.protocols.PING.up(PING.java:69)

          at org.jgroups.protocols.MPING.up(MPING.java:176)

          at org.jgroups.protocols.TP.passMessageUp(TP.java:1109)

          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1665)

          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1647)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

 

My code in attachment it's one class only labs.Node