[jira] [Comment Edited] (KAFKA-3400) Topic stop working / can't describe topic
[ https://issues.apache.org/jira/browse/KAFKA-3400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15208542#comment-15208542 ] Tobias edited comment on KAFKA-3400 at 3/23/16 3:11 PM: I also checked the data directories and the only topic to have any files created is the EXCHANGE_RATE_EXPORT one. No files for any other topics (5 all in all) But if I run bin/kafka-topics.sh --zookeeper --create --topic TEST_TOPIC --partitions 8 --replication-factor 3 The TOPIC gets created perfectly and files exist under data directories was (Author: tobad357): I also checked the data directories and the only topic to have any files created is the EXCHANGE_RATE_EXPORT one. No files for any other topics (5 all in all) > Topic stop working / can't describe topic > - > > Key: KAFKA-3400 > URL: https://issues.apache.org/jira/browse/KAFKA-3400 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.1 >Reporter: Tobias >Assignee: Ashish K Singh > Fix For: 0.10.1.0 > > > we are seeing an issue were we intermittently (every couple of hours) get and > error with certain topics. They stop working and producers give a > LeaderNotFoundException. > When we then try to use kafka-topics.sh to describe the topic we get the > error below. > Error while executing topic command : next on empty iterator > {{ > [2016-03-15 17:30:26,231] ERROR java.util.NoSuchElementException: next on > empty iterator > at scala.collection.Iterator$$anon$2.next(Iterator.scala:39) > at scala.collection.Iterator$$anon$2.next(Iterator.scala:37) > at scala.collection.IterableLike$class.head(IterableLike.scala:91) > at scala.collection.AbstractIterable.head(Iterable.scala:54) > at > kafka.admin.TopicCommand$$anonfun$describeTopic$1.apply(TopicCommand.scala:198) > at > kafka.admin.TopicCommand$$anonfun$describeTopic$1.apply(TopicCommand.scala:188) > at > scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) > at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) > at kafka.admin.TopicCommand$.describeTopic(TopicCommand.scala:188) > at kafka.admin.TopicCommand$.main(TopicCommand.scala:66) > at kafka.admin.TopicCommand.main(TopicCommand.scala) > (kafka.admin.TopicCommand$) > }} > if we delete the topic, then it will start to work again for a while > We can't see anything obvious in the logs but are happy to provide if needed -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (KAFKA-3400) Topic stop working / can't describe topic
[ https://issues.apache.org/jira/browse/KAFKA-3400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15197911#comment-15197911 ] Ashish K Singh edited comment on KAFKA-3400 at 3/16/16 10:50 PM: - [~tobad357] what is the topic's replication factor set to? One of the reasons you could see such issue is that the topic gets deleted while a producer is still producing to the topic. Though, the topic gets marked for deletion, as producer is producing the topic, kafka will re-create the topic, if auto topic creation is enabled. However, none of the partitions will be created as the topic is marked for deletion. was (Author: singhashish): [~tobad357] what is the topic's replication factor set to? > Topic stop working / can't describe topic > - > > Key: KAFKA-3400 > URL: https://issues.apache.org/jira/browse/KAFKA-3400 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.1 >Reporter: Tobias > > we are seeing an issue were we intermittently (every couple of hours) get and > error with certain topics. They stop working and producers give a > LeaderNotFoundException. > When we then try to use kafka-topics.sh to describe the topic we get the > error below. > Error while executing topic command : next on empty iterator > {{ > [2016-03-15 17:30:26,231] ERROR java.util.NoSuchElementException: next on > empty iterator > at scala.collection.Iterator$$anon$2.next(Iterator.scala:39) > at scala.collection.Iterator$$anon$2.next(Iterator.scala:37) > at scala.collection.IterableLike$class.head(IterableLike.scala:91) > at scala.collection.AbstractIterable.head(Iterable.scala:54) > at > kafka.admin.TopicCommand$$anonfun$describeTopic$1.apply(TopicCommand.scala:198) > at > kafka.admin.TopicCommand$$anonfun$describeTopic$1.apply(TopicCommand.scala:188) > at > scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59) > at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47) > at kafka.admin.TopicCommand$.describeTopic(TopicCommand.scala:188) > at kafka.admin.TopicCommand$.main(TopicCommand.scala:66) > at kafka.admin.TopicCommand.main(TopicCommand.scala) > (kafka.admin.TopicCommand$) > }} > if we delete the topic, then it will start to work again for a while > We can't see anything obvious in the logs but are happy to provide if needed -- This message was sent by Atlassian JIRA (v6.3.4#6332)