[
https://issues.jboss.org/browse/ISPN-958?page=com.atlassian.jira.plugin.s...
]
Radoslav Husar commented on ISPN-958:
-------------------------------------
This is really not cool, I have a thread blocked for 20 minutes and everything hanging.
<code>
"Runner - 796" daemon prio=10 tid=0x00002aab388db000 nid=0x94a runnable
[0x00000000754c2000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:206)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
- locked <0x00002aaab4e57bc0> (a java.lang.Object)
at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:176)
- locked <0x00002aaab4e57b98> (a java.lang.Object)
at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:86)
- locked <0x00002aaab4e57c38> (a sun.nio.ch.SocketAdaptor$SocketInputStream)
at java.io.InputStream.read(InputStream.java:85)
at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:64)
- locked <0x00002aaab4e57c38> (a sun.nio.ch.SocketAdaptor$SocketInputStream)
at
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:119)
at
org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:80)
at
org.infinispan.client.hotrod.impl.operations.AbstractKeyValueOperation.sendPutOperation(AbstractKeyValueOperation.java:48)
at
org.infinispan.client.hotrod.impl.operations.PutOperation.executeOperation(PutOperation.java:27)
at
org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:38)
at org.infinispan.client.hotrod.impl.RemoteCacheImpl.put(RemoteCacheImpl.java:166)
at org.infinispan.CacheSupport.put(CacheSupport.java:28)
at
org.jboss.smartfrog.edg.adapter.HotRodAdapter$HotRodRemoteCacheAdapter.put(HotRodAdapter.java:150)
at
org.jboss.smartfrog.edg.loaddriver.CacheRequestProcessorFactory$InfinispanRequestProcessor.processRequest(CacheRequestProcessorFactory.java:163)
at
org.jboss.smartfrog.loaddriver.CompoundRequestProcessorFactoryImpl$CompoundRequestProcessor.processRequest(CompoundRequestProcessorFactoryImpl.java:51)
at org.jboss.smartfrog.loaddriver.Runner.run(Runner.java:87)
at java.lang.Thread.run(Thread.java:619)
</code>
Java HotRod: Add client timeout option
--------------------------------------
Key: ISPN-958
URL:
https://issues.jboss.org/browse/ISPN-958
Project: Infinispan
Issue Type: Feature Request
Affects Versions: 4.2.1.CR3
Reporter: Radoslav Husar
Assignee: Mircea Markus
Fix For: 4.2.1.FINAL
There does not seem to be an option to specify a client time-out. This is pretty common
and IMHO a valid feature with any client out there.
http://docs.jboss.org/infinispan/4.2/apidocs/org/infinispan/client/hotrod...
The only option is to be catching a HotRodTimeoutException which is rethrowed on
replication timeout on the Infinispan side, which is not it.
http://docs.jboss.org/infinispan/4.2/apidocs/org/infinispan/client/hotrod...
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira