You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "tianye (JIRA)" <ji...@apache.org> on 2018/02/05 05:55:00 UTC

[jira] [Commented] (KAFKA-5778) Kafka cluster is not responding when one broker hangs and resulted in too many connections in close_wait in other brokers

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

tianye commented on KAFKA-5778:
-------------------------------

hello ,i have the same problem,the kafka broker close_wait is increase, i config the /etc/sysctl.conf 

net.ipv4.tcp_keepalive_intvl=5

net.ipv4.tcp_keepalive_probes=5

net.ipv4.tcp_time=1200

net.ipv4.tcp_tw_recycle=1

net.ipv4.tcp_tw_reuse=1

but ,it don't work, the open file is increase too ,about 2 hours,the open file is biger than system ,the kafka close by it self .

how to solve it ?please help me .thank you !

> Kafka cluster is not responding when one broker hangs and resulted in too many connections in close_wait in other brokers
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5778
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5778
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.10.0.1
>            Reporter: saichand
>            Priority: Critical
>
> In a cluster of 3 brokers , one of the broker(Broker-1 ) is hanged and from then other two brokers has connections in close_wait for java client producer/consumer and also even some broker to broker connections are in close wait among those two brokers.
> Kafka Version : 0.10.0.1
> In logs I found replica fetcher thread connection refused exceptions:
> In broker 0 : replica fetcher 0-1, replica fetcher 0-2
> In broker 2 : replica fetcher 0-0, replica fetcher 0-1
> In broker 1 : It was hung no logs were available at that time.
> We tried restarting broker- 2 kafka and then it was not successful as it terminated saying zookeeper timeout 
> then we tried restarting broker- 0 kafka and we got the same error
> Broker -1 was hang so , we could not login even into it
> so we restarted broker -1 machine
> then we restarted all zookepers and then kafka brokers now everything is fine 



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