kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin P. McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-6544) kafka process should exit when it encounters "java.io.IOException: Too many open files"
Date Thu, 08 Feb 2018 19:31:00 GMT

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

Colin P. McCabe commented on KAFKA-6544:
----------------------------------------

What are the open file descriptors that you are seeing?  Can you get the output of {{sudo
ls -l /proc/$KAFKA_PID/fd}} (where KAFKA_PID is the process ID of Kafka?)  And also perhaps
{{netstat -pnt}}?

> kafka process should exit when it encounters "java.io.IOException: Too many open files"
 
> -----------------------------------------------------------------------------------------
>
>                 Key: KAFKA-6544
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6544
>             Project: Kafka
>          Issue Type: Bug
>          Components: admin, network
>    Affects Versions: 0.10.2.1
>            Reporter: Yu Yang
>            Priority: Major
>
> Our kafka cluster encountered a few disk/xfs failures in the cloud vm instances. When
a disk/xfs failure happens, kafka process did not exit gracefully. Instead, it run into 
"<defunct>" status, with port 9092 still be reachable.  when failures like this happens,
kafka should shutdown all threads and exit. The following is the kafka logs when the failure
happens:
> {code:java}
> [2018-02-08 12:52:31,764] ERROR Error while accepting connection (kafka.network.Acceptor)
> java.io.IOException: Too many open files
>         at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>         at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
>         at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
>         at kafka.network.Acceptor.accept(SocketServer.scala:340)
>         at kafka.network.Acceptor.run(SocketServer.scala:283)
>         at java.lang.Thread.run(Thread.java:748)
> [2018-02-08 12:52:31,772] ERROR Error while accepting connection (kafka.network.Acceptor)
> java.io.IOException: Too many open files
>         at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>         at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
>         at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
>         at kafka.network.Acceptor.accept(SocketServer.scala:340)
>         at kafka.network.Acceptor.run(SocketServer.scala:283)
>         at java.lang.Thread.run(Thread.java:748)
> [2018-02-08 12:52:31,772] ERROR Error while accepting connection (kafka.network.Acceptor)
> java.io.IOException: Too many open files
>         at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>         at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
>         at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
>         at kafka.network.Acceptor.accept(SocketServer.scala:340)
>         at kafka.network.Acceptor.run(SocketServer.scala:283)
>         at java.lang.Thread.run(Thread.java:748)
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message