You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Lovenish goyal (JIRA)" <ji...@apache.org> on 2018/07/10 12:45:00 UTC
[jira] [Created] (KAFKA-7145) Consumer thread getting stuck in
hasNext() method
Lovenish goyal created KAFKA-7145:
-------------------------------------
Summary: Consumer thread getting stuck in hasNext() method
Key: KAFKA-7145
URL: https://issues.apache.org/jira/browse/KAFKA-7145
Project: Kafka
Issue Type: Bug
Components: clients
Affects Versions: 0.10.0.1, 0.9.0.1
Reporter: Lovenish goyal
Consumer thread is getting stuck at *hasNext()* method.
we are using ConsumerIterator for same and below is the code snipped
{code:java}
ConsumerIterator mIterator;
List<KafkaStream<byte[], byte[]>> streams = mConsumerConnector.createMessageStreamsByFilter(topicFilter);
KafkaStream<byte[], byte[]> stream = streams.get(0);
mIterator = stream.iterator();
{code}
When i manually check via [Kafdrop|https://github.com/HomeAdvisor/Kafdrop] I am seeing 'No message found' message.I have tried same with both kafka version 9 & 10 and getting same issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)