[
https://jira.jboss.org/browse/ISPN-711?page=com.atlassian.jira.plugin.sys...
]
Manik Surtani commented on ISPN-711:
------------------------------------
I've analysed this some more - you don't need a loop to cause this to fail. In
fact you don't even need multiple keys. Here is a unit test that is much simpler, and
depicts the same.
http://pastie.org/1237790
Interestingly, the issue may be somewhat artificial. It is because the transaction
doesn't contain any updates - and as an optimisation, the commit isn't broadcast.
Note that un-commenting the put() in the test causes the test to pass.
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