[infinispan-issues] [JBoss JIRA] (ISPN-7747) Java client library tries to connect to a stopped Infinispan instance over HotRod

Daniel Breitlauch (JIRA) issues at jboss.org
Fri Apr 21 05:11:01 EDT 2017


Daniel Breitlauch created ISPN-7747:
---------------------------------------

             Summary: Java client library tries to connect to a stopped Infinispan instance over HotRod
                 Key: ISPN-7747
                 URL: https://issues.jboss.org/browse/ISPN-7747
             Project: Infinispan
          Issue Type: Bug
          Components: Remote Protocols
    Affects Versions: 8.2.6.Final
         Environment: I have a Infinispan cluster with 4 instances on 4 nodes. There is approx. 16 GB of data on each node. Replication factor is two.
4 Java instances are running on the same hosts and connect to the cluster via HotRod.
            Reporter: Daniel Breitlauch


When I stop one instance of Infinispan I see it rebalancing for e few seconds. I also see the topology change propagated to the java clients.

But there seems to be a problem in the java client library. After the topology change it looks like it tries to connect to the Infinispan instance that was stopped.

At least I see these SocketTimeoutExceptions:
{code:java}
java.net.SocketTimeoutException: null
	at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:211) ~[na:1.8.0_111]
	at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103) ~[na:1.8.0_111]
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[na:1.8.0_111]
	at java.io.BufferedInputStream.read(BufferedInputStream.java:265) ~[na:1.8.0_111]
	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:190) ~[infinispan-client-hotrod-8.2.6.Final.jar:8.2.6.Final]
Wrapped by: org.infinispan.client.hotrod.exceptions.TransportException: java.net.SocketTimeoutException
	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:195) ~[infinispan-client-hotrod-8.2.6.Final.jar:8.2.6.Final]
	at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:312) ~[infinispan-client-hotrod-8.2.6.Final.jar:8.2.6.Final]
	at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:122) ~[infinispan-client-hotrod-8.2.6.Final.jar:8.2.6.Final]
	at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56) ~[infinispan-client-hotrod-8.2.6.Final.jar:8.2.6.Final]
	at org.infinispan.client.hotrod.impl.operations.PutAllOperation.executeOperation(PutAllOperation.java:56) ~[infinispan-client-hotrod-8.2.6.Final.jar:8.2.6.Final]
{code}

Is this a known issue? Is Infinispan not reachable while rebalancing?



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list