kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <ssla...@gmail.com>
Subject New producer hangs inifitely when it looses connection to Kafka cluster
Date Tue, 21 Jul 2015 14:05:54 GMT
Hello Apache Kafka community,

Just noticed that :
- message is successfully published using new producer
- and then Kafka is stopped

next attempt to publish message using same instance of new producer hangs
forever, and following stacktrace gets logged repeatedly:

[WARN ] [o.a.kafka.common.network.Selector] [] Error in I/O with localhost/
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_31]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
at org.apache.kafka.common.network.Selector.poll(Selector.java:238)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:192)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:191)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:122)
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_31]

I expect producer to respect timeout settings even in this connection lost

Is this a known bug? Is there something I can do/configure as a workaround?

Kind regards,
Stevo Slavic.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message