Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5110

ConsumerGroupCommand error handling improvement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.10.1.1
    • None
    • tools
    • None

    Description

      The ConsumerGroupCommand isn't handling partition errors properly. It throws the following:

      kafka-consumer-groups.sh --zookeeper 10.10.10.10:2181 --group mygroup --describe
      
      GROUP TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG OWNER
      
      Error while executing consumer group command empty.head
      
      java.lang.UnsupportedOperationException: empty.head
      
      at scala.collection.immutable.Vector.head(Vector.scala:193)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService$$anonfun$getLogEndOffset$1.apply(ConsumerGroupCommand.scala:197)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService$$anonfun$getLogEndOffset$1.apply(ConsumerGroupCommand.scala:194)
      
      at scala.Option.map(Option.scala:146)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService.getLogEndOffset(ConsumerGroupCommand.scala:194)
      
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.kafka$admin$ConsumerGroupCommand$ConsumerGroupService$$describePartition(ConsumerGroupCommand.scala:125)
      
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$$anonfun$describeTopicPartition$2.apply(ConsumerGroupCommand.scala:107)
      
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$$anonfun$describeTopicPartition$2.apply(ConsumerGroupCommand.scala:106)
      
      at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
      
      at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
      
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.describeTopicPartition(ConsumerGroupCommand.scala:106)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService.describeTopicPartition(ConsumerGroupCommand.scala:134)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService.kafka$admin$ConsumerGroupCommand$ZkConsumerGroupService$$describeTopic(ConsumerGroupCommand.scala:181)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService$$anonfun$describeGroup$1.apply(ConsumerGroupCommand.scala:166)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService$$anonfun$describeGroup$1.apply(ConsumerGroupCommand.scala:166)
      
      at scala.collection.Iterator$class.foreach(Iterator.scala:893)
      
      at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      
      at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      
      at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService.describeGroup(ConsumerGroupCommand.scala:166)
      
      at kafka.admin.ConsumerGroupCommand$ConsumerGroupService$class.describe(ConsumerGroupCommand.scala:89)
      
      at kafka.admin.ConsumerGroupCommand$ZkConsumerGroupService.describe(ConsumerGroupCommand.scala:134)
      
      at kafka.admin.ConsumerGroupCommand$.main(ConsumerGroupCommand.scala:68)
      
      at kafka.admin.ConsumerGroupCommand.main(ConsumerGroupCommand.scala)
      

      Attachments

        Activity

          People

            hachikuji Jason Gustafson
            cotedm Dustin Cote
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: