Nikita Amelchev created IGNITE-23200:
----------------------------------------

             Summary: Thin client sometimes fails to reconnect when requesting 
a service proxy
                 Key: IGNITE-23200
                 URL: https://issues.apache.org/jira/browse/IGNITE-23200
             Project: Ignite
          Issue Type: Bug
            Reporter: Nikita Amelchev
         Attachments: ServicesFailoverTest.java

Sometimes thin client fails (all addresses presents in configuration):


{noformat}
org.apache.ignite.client.ClientConnectionException: Connection refused 
[remoteAddress=127.0.0.1:10801]

        at 
org.apache.ignite.internal.client.thin.io.gridnioserver.GridNioClientConnectionMultiplexer.open(GridNioClientConnectionMultiplexer.java:197)
        at 
org.apache.ignite.internal.client.thin.TcpClientChannel.<init>(TcpClientChannel.java:209)
        at 
org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:1072)
        at 
org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:1049)
        at 
org.apache.ignite.internal.client.thin.ReliableChannel.applyOnDefaultChannel(ReliableChannel.java:864)
        at 
org.apache.ignite.internal.client.thin.ReliableChannel.applyOnDefaultChannel(ReliableChannel.java:809)
        at 
org.apache.ignite.internal.client.thin.ReliableChannel.service(ReliableChannel.java:210)
        at 
org.apache.ignite.internal.client.thin.ClientServicesImpl$ServiceInvocationHandler.invoke(ClientServicesImpl.java:328)
        at com.sun.proxy.$Proxy56.nodeId(Unknown Source)
        at 
org.apache.ignite.internal.client.thin.ServicesFailoverTest.test(ServicesFailoverTest.java:41)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
        at java.base/java.lang.Thread.run(Thread.java:829)
        Suppressed: org.apache.ignite.client.ClientConnectionException: Channel 
is closed [addresses=[127.0.0.1:10800]]
                at 
org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:1063)
                ... 17 more
Caused by: org.apache.ignite.client.ClientConnectionException: Connection 
refused
        at 
org.apache.ignite.internal.client.thin.io.gridnioserver.GridNioClientConnectionMultiplexer.open(GridNioClientConnectionMultiplexer.java:172)
        ... 19 more
Caused by: java.net.ConnectException: Connection refused
        at java.base/sun.nio.ch.Net.connect0(Native Method)
        at java.base/sun.nio.ch.Net.connect(Net.java:483)
        at java.base/sun.nio.ch.Net.connect(Net.java:472)
        at 
java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:692)
        at java.base/sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:100)
        at 
org.apache.ignite.internal.client.thin.io.gridnioserver.GridNioClientConnectionMultiplexer.open(GridNioClientConnectionMultiplexer.java:152)
        ... 19 more
{noformat}


Reproducer attached. The test is flaky (1/50).




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to