This is an automated email from the ASF dual-hosted git repository.
sergey-chugunov-1985 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new f6f439ec4fe IGNITE-28735 Add check for zero value in denominator
(#13193)
f6f439ec4fe is described below
commit f6f439ec4fec8f4c4f79009f4971dd8cba0e7146
Author: Sergey Chugunov <[email protected]>
AuthorDate: Mon Jun 8 16:11:10 2026 +0400
IGNITE-28735 Add check for zero value in denominator (#13193)
---
.../ignite/spi/communication/tcp/internal/ConnectionClientPool.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/internal/ConnectionClientPool.java
b/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/internal/ConnectionClientPool.java
index 6be1c684fc7..55824fea775 100644
---
a/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/internal/ConnectionClientPool.java
+++
b/modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/internal/ConnectionClientPool.java
@@ -859,7 +859,7 @@ public class ConnectionClientPool {
totalLifetime += (now - client.creationTime());
}
- return totalLifetime / connCnt;
+ return connCnt != 0 ? totalLifetime / connCnt : 0;
}
/** */