You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Rahul Mohan (Jira)" <ji...@apache.org> on 2023/11/24 07:11:00 UTC
[jira] [Created] (IGNITE-20955) Issue in Reconnect Throttling
Rahul Mohan created IGNITE-20955:
------------------------------------
Summary: Issue in Reconnect Throttling
Key: IGNITE-20955
URL: https://issues.apache.org/jira/browse/IGNITE-20955
Project: Ignite
Issue Type: Bug
Components: thin client
Affects Versions: 2.15, 2.14
Reporter: Rahul Mohan
Encountered an issue where the below Reconnect throttling exception is thrown even when there are no connection issues to Ignite server.
org.apache.ignite.client.ClientConnectionException: Reconnect is not allowed due to applied throttling
at org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:959) ~[ignite-core-2.14.0.jar!/:2.14.0]
at org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.getOrCreateChannel(ReliableChannel.java:942) ~[ignite-core-2.14.0.jar!/:2.14.0]
at org.apache.ignite.internal.client.thin.ReliableChannel$ClientChannelHolder.access$200(ReliableChannel.java:891) ~[ignite-core-2.14.0.jar!/:2.14.0]
at org.apache.ignite.internal.client.thin.ReliableChannel.applyOnDefaultChannel(ReliableChannel.java:795) ~[ignite-core-2.14.0.jar!/:2.14.0]
at org.apache.ignite.internal.client.thin.ReliableChannel.applyOnNodeChannelWithFallback(ReliableChannel.java:848) ~[ignite-core-2.14.0.jar!/:2.14.0]
at org.apache.ignite.internal.client.thin.ReliableChannel.affinityService(ReliableChannel.java:315) ~[ignite-core-2.14.0.jar!/:2.14.0]
at org.apache.ignite.internal.client.thin.TcpClientCache.cacheSingleKeyOperation(TcpClientCache.java:1084) ~[ignite-core-2.14.0.jar!/:2.14.0]
<code>
org.apache.ignite.internal.client.thin.ReliableChannel.java
private boolean applyReconnectionThrottling() {
if (reconnectRetries == null)
return false;
long ts = System.currentTimeMillis();
for (int i = 0; i < reconnectRetries.length; i++) {
if (ts - reconnectRetries[i] >= chCfg.getReconnectThrottlingPeriod()) {
reconnectRetries[i] = ts;
return false;
}
}
return true;
}
</code>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)