This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new f2f2d085d3b IGNITE-27797 Java client: fix inconsistent logging (#7622)
f2f2d085d3b is described below

commit f2f2d085d3bf15fc75d2ffd20571ab96f8f309c8
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Thu Feb 19 12:54:58 2026 +0200

    IGNITE-27797 Java client: fix inconsistent logging (#7622)
---
 .../java/org/apache/ignite/internal/client/TcpClientChannel.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/modules/client/src/main/java/org/apache/ignite/internal/client/TcpClientChannel.java
 
b/modules/client/src/main/java/org/apache/ignite/internal/client/TcpClientChannel.java
index b441fa19a7e..7ead14efb64 100644
--- 
a/modules/client/src/main/java/org/apache/ignite/internal/client/TcpClientChannel.java
+++ 
b/modules/client/src/main/java/org/apache/ignite/internal/client/TcpClientChannel.java
@@ -449,8 +449,12 @@ class TcpClientChannel implements ClientChannel, 
ClientMessageHandler, ClientCon
                 throw sneakyThrow(t);
             }
 
-            log.warn("Failed to send request sync [id=" + id + ", op=" + 
opCode + ", remoteAddress=" + cfg.getAddress() + "]: "
-                    + t.getMessage(), t);
+            //noinspection InstanceofCatchParameter
+            if (t instanceof IgniteClientConnectionException) {
+                // Only log connection errors - consistent with async path.
+                log.warn("Failed to send request sync [id=" + id + ", op=" + 
opCode + ", remoteAddress=" + cfg.getAddress() + "]: "
+                        + t.getMessage(), t);
+            }
 
             // Close buffer manually on fail. Successful write closes the 
buffer automatically.
             payloadCh.close();

Reply via email to