org.apache.ignite.client.ClientConnectionException:在kubernetes环境中Ignite群集不可用

问题描述 投票:1回答:1

我们有一个设置,其中一个点火服务器节点服务15至20个瘦客户端节点和40至50个瘦客户端节点,瘦客户端连接为singlton,在运行中,有时我们会遇到以下错误,

org.apache.ignite.client.ClientConnectionException: Ignite cluster is unavailable [sock=Socket[addr=hostnm19.hostx.com/10.13.10.19,port=30519,localport=57552]] 

在服务器节点上,我们正在使用CacheStoreAdapters将数据插入第三方存储中

不知道它出了什么问题,因为在100个操作中,有一个操作因上述错误而失败。另外,让我知道该怎么办才能进行此故障处理。

Apache Ignite版本: 2.8

编辑:(代码段)

ClientConfiguration cfg = new ClientConfiguration()
                .setAddresses("host:port");

IgniteClient client = Ignition.startClient(cfg);   // this client is singleton

client.getOrCreateCache("ABC_CACHE").put(key, val);

StatckTrace:

org.apache.ignite.client.ClientConnectionException: Ignite cluster is unavailable [sock=Socket[addr=hostnm19.hostx.com/10.13.10.19,port=30519,localport=57552]]
at org.apache.ignite.internal.client.thin.TcpClientChannel.handleIOError(TcpClientChannel.java:499)
at org.apache.ignite.internal.client.thin.TcpClientChannel.handleIOError(TcpClientChannel.java:491)
at org.apache.ignite.internal.client.thin.TcpClientChannel.access$100(TcpClientChannel.java:92)
at org.apache.ignite.internal.client.thin.TcpClientChannel$ByteCountingDataInput.read(TcpClientChannel.java:538)
at org.apache.ignite.internal.client.thin.TcpClientChannel$ByteCountingDataInput.readInt(TcpClientChannel.java:572)
at org.apache.ignite.internal.client.thin.TcpClientChannel.processNextResponse(TcpClientChannel.java:272)
at org.apache.ignite.internal.client.thin.TcpClientChannel.receive(TcpClientChannel.java:234)
at org.apache.ignite.internal.client.thin.TcpClientChannel.service(TcpClientChannel.java:171)
at org.apache.ignite.internal.client.thin.ReliableChannel.service(ReliableChannel.java:160)
at org.apache.ignite.internal.client.thin.ReliableChannel.request(ReliableChannel.java:187)
at org.apache.ignite.internal.client.thin.TcpIgniteClient.getOrCreateCache(TcpIgniteClient.java:114)

Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.apache.ignite.internal.client.thin.TcpClientChannel$ByteCountingDataInput.read(TcpClientChannel.java:535)
... 36 more
ignite
1个回答
0
投票

您可能已配置了网络或NAT,这些网络或NAT将在不使用时甚至偶发地重置连接。在这种情况下,您将必须重新连接。

另一个选项,您确定要连接到瘦客户机端口而不是其他端口吗?

© www.soinside.com 2019 - 2024. All rights reserved.