[
https://jira.jboss.org/browse/ISPN-711?page=com.atlassian.jira.plugin.sys...
]
Changgeng Li commented on ISPN-711:
-----------------------------------
I'm not quite sure whether my configuration is correct. By analysing the log files
carefully, it seems the root cause is that the lock command will be broadcast to remote
node, but the transaction commit is not. So the lock would never be released on the remote
node. This not only happens with multiple keys. Even I try with only one thread with the
same key, the error can still be reproduced.
TimeoutException when explictly locking mutiple keys repeatedly
---------------------------------------------------------------
Key: ISPN-711
URL:
https://jira.jboss.org/browse/ISPN-711
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 4.2.0.ALPHA3
Environment: In a two node distributed cache.
Reporter: Changgeng Li
Assignee: Manik Surtani
Priority: Critical
Fix For: 4.2.0.BETA1
Attachments: u.tgz
When run the attached unit test, following exception occurs in the first several loops.
2010-10-19 16:36:19,739 INFO [org.infinispan.factories.ComponentRegistry](main)-
Infinispan version: Infinispan 'Pagoa' 4.2.0.ALPHA3
2010-10-19 16:36:35,880 ERROR
[org.infinispan.interceptors.InvocationContextInterceptor](Thread-4)- Execution error:
org.infinispan.util.concurrent.TimeoutException: Timed out waiting for valid responses!
at
org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:421)
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:100)
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:124)
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:229)
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:216)
at
org.infinispan.interceptors.DistributionInterceptor.visitLockControlCommand(DistributionInterceptor.java:214)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at
org.infinispan.interceptors.LockingInterceptor.visitLockControlCommand(LockingInterceptor.java:158)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at
org.infinispan.interceptors.DeadlockDetectingInterceptor.handleDataCommand(DeadlockDetectingInterceptor.java:89)
at
org.infinispan.interceptors.DeadlockDetectingInterceptor.visitLockControlCommand(DeadlockDetectingInterceptor.java:71)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at
org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132)
at
org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at
org.infinispan.interceptors.MarshalledValueInterceptor.visitLockControlCommand(MarshalledValueInterceptor.java:93)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at
org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:159)
at
org.infinispan.interceptors.TxInterceptor.visitLockControlCommand(TxInterceptor.java:115)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at
org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:87)
at
org.infinispan.interceptors.InvocationContextInterceptor.visitLockControlCommand(InvocationContextInterceptor.java:63)
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:142)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:273)
at org.infinispan.CacheDelegate.lock(CacheDelegate.java:297)
at org.infinispan.CacheDelegate.lock(CacheDelegate.java:290)
at test.TestSaveMultipleKeys.lockMultipleKeys(TestSaveMultipleKeys.java:100)
at test.TestSaveMultipleKeys.access$000(TestSaveMultipleKeys.java:13)
at test.TestSaveMultipleKeys$XThread.run(TestSaveMultipleKeys.java:84)
ERROR in loop 1: Timed out waiting for valid responses!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira