You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ismael Juma (JIRA)" <ji...@apache.org> on 2015/09/02 21:27:45 UTC

[jira] [Commented] (KAFKA-2504) Stop logging WARN when client disconnects

    [ https://issues.apache.org/jira/browse/KAFKA-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727886#comment-14727886 ] 

Ismael Juma commented on KAFKA-2504:
------------------------------------

Probably a similar one was fixed, this one has been there since January according to git:

{code}
catch (IOException e) {
    String desc = channel.socketDescription();
    if (e instanceof EOFException || e instanceof ConnectException)
        log.debug("Connection {} disconnected", desc);
    else
        log.warn("Error in I/O with connection to {}", desc, e);
    close(channel);
    this.disconnected.add(channel.id());
}
{code}

> Stop logging WARN when client disconnects
> -----------------------------------------
>
>                 Key: KAFKA-2504
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2504
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Gwen Shapira
>             Fix For: 0.8.3
>
>
> I thought we fixed this one, but it came back. This can be fill logs and is fairly useless. Should be logged at DEBUG level:
> {code}
> [2015-09-02 12:05:59,743] WARN Error in I/O with connection to /10.191.0.36 (org.apache.kafka.common.network.Selector)
> java.io.IOException: Connection reset by peer
> 	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
> 	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
> 	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
> 	at sun.nio.ch.IOUtil.read(IOUtil.java:197)
> 	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
> 	at org.apache.kafka.common.network.PlaintextTransportLayer.read(PlaintextTransportLayer.java:111)
> 	at org.apache.kafka.common.network.NetworkReceive.readFromReadableChannel(NetworkReceive.java:81)
> 	at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:71)
> 	at org.apache.kafka.common.network.KafkaChannel.receive(KafkaChannel.java:154)
> 	at org.apache.kafka.common.network.KafkaChannel.read(KafkaChannel.java:135)
> 	at org.apache.kafka.common.network.Selector.poll(Selector.java:296)
> 	at kafka.network.Processor.run(SocketServer.scala:405)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)