Jun Rao created KAFKA-1038: ------------------------------ Summary: 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
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