Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider handling issues related to hanging within Apache's Kafka consumer #109

Open
laszloesl opened this issue Apr 20, 2017 · 1 comment

Comments

@laszloesl
Copy link

The following is not an issue with Scala Kafka client, but it would be nice to have a solution/workaround for it.

We have noticed that kafka consumer just hangs when the port or address of a bootstrap server is wrong (i.e., non-existent bs server). This happens in the kafka-console-consumer too, so it is likely an issue within the Java implementation.

A few bug reports/tickets that might be related:

The issue can easily be reproduced with the command:

kafka-console-consumer.sh --bootstrap-server google.com:9092 --from-beginning --topic anything

The process just hangs without producing any output.

The same happens in code, without emitting any error message about the non-existing broker.

@simonsouter
Copy link
Contributor

There is potentially a KIP to look at this issue: https://cwiki.apache.org/confluence/display/KAFKA/KIP-148%3A+Add+a+connect+timeout+for+client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants