[ 
https://issues.apache.org/jira/browse/KAFKA-1038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756685#comment-13756685
 ] 

Jun Rao commented on KAFKA-1038:
--------------------------------

This patch only fixes the response for the fetch request. So it's unrelated to 
ack=0, since it is only used in the produce request. You did bring up a good 
point on ack=0. Will comment on kafka-955.
                
> 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

Reply via email to