kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsiva...@apache.org
Subject [kafka] 02/02: KAFKA-3702: Change log level of SSL close_notify failure (#5397)
Date Fri, 20 Jul 2018 08:24:16 GMT
This is an automated email from the ASF dual-hosted git repository.

rsivaram pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/kafka.git

commit 5d9dc997fa1ad6904f3adc9a14942daf0f342a8f
Author: Rajini Sivaram <rajinisivaram@googlemail.com>
AuthorDate: Fri Jul 20 09:23:01 2018 +0100

    KAFKA-3702: Change log level of SSL close_notify failure (#5397)
    
    SslTransportLayer currently closes the SSL engine and logs a warning if close_notify message
canot be sent because the remote end closed its connection. This tends to fill up broker logs,
especially when using clients which close connections immediately. Since this log entry is
not very useful anyway, it would be better to log at debug level.
    
    Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk>
---
 .../main/java/org/apache/kafka/common/network/SslTransportLayer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java
b/clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java
index 838a6a7..08a39e7 100644
--- a/clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java
+++ b/clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java
@@ -177,7 +177,7 @@ public class SslTransportLayer implements TransportLayer {
                 flush(netWriteBuffer);
             }
         } catch (IOException ie) {
-            log.warn("Failed to send SSL Close message", ie);
+            log.debug("Failed to send SSL Close message", ie);
         } finally {
             socketChannel.socket().close();
             socketChannel.close();


Mime
View raw message