You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Alexander Cook (JIRA)" <ji...@apache.org> on 2016/06/10 16:48:21 UTC
[jira] [Created] (KAFKA-3822) Kafka Consumer close() hangs
indefinitely if Kafka Broker shutdown while connected
Alexander Cook created KAFKA-3822:
-------------------------------------
Summary: Kafka Consumer close() hangs indefinitely if Kafka Broker shutdown while connected
Key: KAFKA-3822
URL: https://issues.apache.org/jira/browse/KAFKA-3822
Project: Kafka
Issue Type: Bug
Components: clients
Affects Versions: 0.9.0.1
Environment: x86 Red Hat 6 (1 broker running zookeeper locally, client running on a separate server)
Reporter: Alexander Cook
I am using the KafkaConsumer java client to consume messages. My application shuts down smoothly if I am connected to a Kafka broker, or if I never succeed at connecting to a Kafka broker, but if the broker is shut down while my consumer is connected to it, consumer.close() hangs indefinitely.
Here is how I reproduce it:
1. Start 0.9.0.1 Kafka Broker
2. Start consumer application and consume messages
3. Stop 0.9.0.1 Kafka Broker (ctrl-c or stop script)
4. Try to stop application...hangs at consumer.close() indefinitely.
I am going to try this out on 0.10 to see if the same thing happens.
This is my first bug reported to Kafka, so please let me know if I should be following a different format. Thanks!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)