Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-861

IndexOutOfBoundsException while fetching data from leader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • None
    • None

    Description

      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)

      Attachments

        1. KAFKA-861.patch
          3 kB
          Sriram
        2. KAFKA-861-v2.patch
          5 kB
          Sriram

        Activity

          People

            sriramsub Sriram
            sriramsub Sriram
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: