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

Check DirectBuffer's cleaner to be not null before using

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0.1
    • 0.10.1.0
    • core
    • None

    Description

      Found the following exception stack in our broker logs.
      The fix should be straight forward with a null check.

      [2016-08-09 17:10:24,451] WARN Error when freeing index buffer (kafka.log.OffsetIndex)
      java.lang.NullPointerException
      at kafka.log.OffsetIndex.kafka$log$OffsetIndex$$forceUnmap(OffsetIndex.scala:312)
      at kafka.log.OffsetIndex$$anonfun$resize$1.apply(OffsetIndex.scala:294)
      at kafka.log.OffsetIndex$$anonfun$resize$1.apply(OffsetIndex.scala:287)
      at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:231)
      at kafka.log.OffsetIndex.resize(OffsetIndex.scala:287)
      at kafka.log.Log.loadSegments(Log.scala:245)
      at kafka.log.Log.<init>(Log.scala:101)
      at kafka.log.LogManager$$anonfun$loadLogs$2$$anonfun$3$$anonfun$apply$10$$anonfun$apply$1.apply$mcV$sp(LogManager.scala:151)
      at kafka.utils.CoreUtils$$anon$1.run(CoreUtils.scala:56)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        Issue Links

          Activity

            People

              soumyajitsahu Soumyajit Sahu
              soumyajitsahu Soumyajit Sahu
              Ismael Juma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: