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

Neha Narkhede commented on KAFKA-861:
-------------------------------------

Thanks for the patch. Good catch!

1. AbstractFetcherThread -
1.1 Let's change the logging to "[%s,%d]" for printing the topic partition. 
This is what most of the code is standardized upon right now. It will make it 
easier to grep through the logs.
1.2 While you're in there, do you mind fixing this typo - "partititon"

2 ByteBufferMessageSet: +1 on Jun's suggestion above.


                
> IndexOutOfBoundsException while fetching data from leader
> ---------------------------------------------------------
>
>                 Key: KAFKA-861
>                 URL: https://issues.apache.org/jira/browse/KAFKA-861
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Sriram Subramanian
>            Assignee: Sriram Subramanian
>             Fix For: 0.8
>
>         Attachments: KAFKA-861.patch
>
>
> 2013-04-09 16:36:50,051] ERROR [ReplicaFetcherThread-0-261], Error due to  
> (kafka.server.ReplicaFetcherThread)
> kafka.common.KafkaException: error processing data for topic firehoseUpdates 
> partititon 14 offset 53531364
>         at 
> kafka.server.AbstractFetcherThread$$anonfun$processFetchRequest$4.apply(AbstractFetcherThread.scala:136)
>         at 
> kafka.server.AbstractFetcherThread$$anonfun$processFetchRequest$4.apply(AbstractFetcherThread.scala:113)
>         at 
> scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:125)
>         at 
> scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:344)
>         at 
> scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:344)
>         at 
> kafka.server.AbstractFetcherThread.processFetchRequest(AbstractFetcherThread.scala:113)
>         at 
> kafka.server.AbstractFetcherThread.doWork(AbstractFetcherThread.scala:89)
>         at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:51)
> Caused by: java.lang.IndexOutOfBoundsException
>         at java.nio.Buffer.checkIndex(Buffer.java:512)
>         at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:121)
>         at kafka.message.Message.compressionCodec(Message.scala:202)
>         at 
> kafka.message.ByteBufferMessageSet$$anon$1.makeNextOuter(ByteBufferMessageSet.scala:174)
>         at 
> kafka.message.ByteBufferMessageSet$$anon$1.makeNext(ByteBufferMessageSet.scala:197)
>         at 
> kafka.message.ByteBufferMessageSet$$anon$1.makeNext(ByteBufferMessageSet.scala:145)
>         at 
> kafka.utils.IteratorTemplate.maybeComputeNext(IteratorTemplate.scala:61)
>         at kafka.utils.IteratorTemplate.hasNext(IteratorTemplate.scala:53)
>         at scala.collection.IterableLike$class.isEmpty(IterableLike.scala:92)
>         at kafka.message.MessageSet.isEmpty(MessageSet.scala:67)
>         at 
> scala.collection.TraversableLike$class.lastOption(TraversableLike.scala:512)
>         at kafka.message.MessageSet.lastOption(MessageSet.scala:67)

--
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