Galder Zamarreño created ISPN-7031:
--------------------------------------
Summary: ClientListener stops working after connection failure
Key: ISPN-7031
URL:
https://issues.jboss.org/browse/ISPN-7031
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols
Affects Versions: 8.2.4.Final, 9.0.0.Alpha4
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 9.0.0.Beta1, 9.0.0.Final
After a connection failure to an Infinispan server, normal operations like get and put
recovers to work as expected. But a {{ClientListener}} stops working. After registering
the listener by {{cache.addClientListener(listener)}} again, it recovers to work.
{code}
13:44:02,017 ERROR [org.infinispan.client.hotrod.event.ClientListenerNotifier]
(Client-Listener-f021d770522e4595) ISPN004043: Unrecoverable error reading event from
server /127.0.0.1:11222, exiting event reader thread:
org.infinispan.client.hotrod.exceptions.TransportException:: java.io.IOException:
Connection reset by peer
at
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:195)
[infinispan-client-hotrod-8.3.0.Final-redhat-1.jar:8.3.0.Final-redhat-1]
at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:305)
[infinispan-client-hotrod-8.3.0.Final-redhat-1.jar:8.3.0.Final-redhat-1]
at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:147)
[infinispan-client-hotrod-8.3.0.Final-redhat-1.jar:8.3.0.Final-redhat-1]
at
org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:262)
[infinispan-client-hotrod-8.3.0.Final-redhat-1.jar:8.3.0.Final-redhat-1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[rt.jar:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_101]
at
org.infinispan.client.hotrod.event.ClientListenerNotifier.lambda$null$0(ClientListenerNotifier.java:78)
[infinispan-client-hotrod-8.3.0.Final-redhat-1.jar:8.3.0.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]
Caused by: java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) [rt.jar:1.8.0_101]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) [rt.jar:1.8.0_101]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) [rt.jar:1.8.0_101]
at sun.nio.ch.IOUtil.read(IOUtil.java:197) [rt.jar:1.8.0_101]
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
[rt.jar:1.8.0_101]
at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:206)
[rt.jar:1.8.0_101]
at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
[rt.jar:1.8.0_101]
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
[rt.jar:1.8.0_101]
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
[rt.jar:1.8.0_101]
at
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:190)
[infinispan-client-hotrod-8.3.0.Final-redhat-1.jar:8.3.0.Final-redhat-1]
... 9 more
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)