[
https://issues.apache.org/jira/browse/KAFKA-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756369#comment-13756369
]
Guozhang Wang commented on KAFKA-1038:
--------------------------------------
What about the ack=0 case? Would the response be sent back to the client with
client not expect it coming?
> fetch response should use empty messageset instead of null when handling
> errors
> -------------------------------------------------------------------------------
>
> Key: KAFKA-1038
> URL: https://issues.apache.org/jira/browse/KAFKA-1038
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8
> Reporter: Jun Rao
> Assignee: Jun Rao
> Attachments: kafka-1038.patch
>
>
> Saw the following exception:
> Exception when handling request (kafka.server.KafkaRequestHandler)
> java.lang.NullPointerException
> at
> kafka.api.FetchResponsePartitionData.<init>(FetchResponse.scala:46)
> at kafka.api.FetchRequest$$anonfun$2.apply(FetchRequest.scala:158)
> at kafka.api.FetchRequest$$anonfun$2.apply(FetchRequest.scala:156)
> at
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
> at
> scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
> at
> scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:178)
> at
> scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:347)
> at
> scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:347)
> at
> scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
> at scala.collection.immutable.HashMap.map(HashMap.scala:38)
> at kafka.api.FetchRequest.handleError(FetchRequest.scala:156)
> at kafka.server.KafkaApis.handle(KafkaApis.scala:78)
> at
> kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:42)
> at java.lang.Thread.run(Thread.java:662)
--
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