nicolasguyomar commented on code in PR #16089:
URL: https://github.com/apache/kafka/pull/16089#discussion_r1648995775


##########
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:
##########
@@ -995,7 +995,11 @@ private void 
handleApiVersionsResponse(List<ClientResponse> responses,
     private void handleDisconnections(List<ClientResponse> responses, long 
now) {
         for (Map.Entry<String, ChannelState> entry : 
this.selector.disconnected().entrySet()) {
             String node = entry.getKey();
-            log.info("Node {} disconnected.", node);
+            if (null != entry.getValue() && entry.getValue() == 
ChannelState.EXPIRED) {
+                log.debug("Idle connection to node {} disconnected.", node);
+            } else {
+                log.info("Node {} disconnected.", node);
+            }
             processDisconnection(responses, node, now, entry.getValue());

Review Comment:
   excuse me @dimitarndimitrov, I managed to confuse myself, you are correct of 
course :) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to