Dong Lin created KAFKA-2585:
-------------------------------
Summary: ConsoleConsumer should not hang infinitely upon exception
Key: KAFKA-2585
URL: https://issues.apache.org/jira/browse/KAFKA-2585
Project: Kafka
Issue Type: Bug
Reporter: Dong Lin
Assignee: Dong Lin
Due to imcompatibility beween Java 1.7 and Java 1.8, if Kafka ConsoleConsumer
was compiled by Java 1.8 but run by Java 1.7, and if ConsoleConsumer has
consumer.timeout.ms in the consumer.properties, then when it timesout, it will
throw the following exception and hang infinitely.
This will cause problem for e.g. Ducktape system test, which currently runs
consumer with Java 1.7 and waits for consumer to timeout. This bug causes the
Ducktape to hang for a long time.
To prevent ConsoleConsumer to hang in case of such exception, we can wrap
try/catch around run() and do System.exit(0) at the end of main() in
ConsoleConsumer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)