kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Arthur (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-690) TopicMetadataRequest throws exception when no topics are specified
Date Wed, 09 Jan 2013 01:23:12 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Arthur updated KAFKA-690:
-------------------------------

    Attachment: KAFKA-690.patch

This patch will return all topic metadata if none are specified in the TopicMetadataRequest.
Also fixes that debug statement
                
> TopicMetadataRequest throws exception when no topics are specified
> ------------------------------------------------------------------
>
>                 Key: KAFKA-690
>                 URL: https://issues.apache.org/jira/browse/KAFKA-690
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8
>            Reporter: David Arthur
>             Fix For: 0.8
>
>         Attachments: KAFKA-690.patch
>
>
> If no topics are sent in a TopicMetadataRequest, `readFrom` throws an exception when
trying to get the the head of the topic list for a debug statement.
> java.util.NoSuchElementException: head of empty list
> 	at scala.collection.immutable.Nil$.head(List.scala:386)
> 	at scala.collection.immutable.Nil$.head(List.scala:383)
> 	at kafka.api.TopicMetadataRequest$$anonfun$readFrom$2.apply(TopicMetadataRequest.scala:43)
> 	at kafka.api.TopicMetadataRequest$$anonfun$readFrom$2.apply(TopicMetadataRequest.scala:43)
> 	at kafka.utils.Logging$class.debug(Logging.scala:51)
> 	at kafka.api.TopicMetadataRequest$.debug(TopicMetadataRequest.scala:25)
> 	at kafka.api.TopicMetadataRequest$.readFrom(TopicMetadataRequest.scala:43)
> 	at kafka.api.RequestKeys$$anonfun$4.apply(RequestKeys.scala:37)
> 	at kafka.api.RequestKeys$$anonfun$4.apply(RequestKeys.scala:37)
> 	at kafka.network.RequestChannel$Request.<init>(RequestChannel.scala:47)
> 	at kafka.network.Processor.read(SocketServer.scala:320)
> 	at kafka.network.Processor.run(SocketServer.scala:231)
> 	at java.lang.Thread.run(Thread.java:680)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message