[ https://issues.apache.org/jira/browse/KAFKA-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15279848#comment-15279848 ]
ASF GitHub Bot commented on KAFKA-3584: --------------------------------------- GitHub user omkreddy opened a pull request: https://github.com/apache/kafka/pull/1367 KAFKA-3584; Fix synchronization issue between deleteOldSegments() and nd delete() methods calls This PR is to fix synchronization issue between deleteOldSegments() and delete() method calls. log.deleteOldSegments() call throws NullPointerException after log.delete() method call. cc @ijuma @junrao You can merge this pull request into a Git repository by running: $ git pull https://github.com/omkreddy/kafka KAFKA-3584 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1367.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1367 ---- commit 6a9240d7fd6d7b08246bda6fba6d909d5268a5d2 Author: Manikumar reddy O <manikumar.re...@gmail.com> Date: 2016-05-11T09:15:45Z KAFKA-3584; Fix synchronization problem between deleteOldSegments() and delete() methods calls ---- > NullPointer Exception found when Delete Topic and Log delete concurrent > ----------------------------------------------------------------------- > > Key: KAFKA-3584 > URL: https://issues.apache.org/jira/browse/KAFKA-3584 > Project: Kafka > Issue Type: Bug > Components: core, log > Affects Versions: 0.9.0.1 > Reporter: Pengwei > Assignee: Manikumar Reddy > Priority: Minor > Fix For: 0.10.0.1 > > > [2016-03-19 17:23:45,760] ERROR Uncaught exception in scheduled task > ‘kafka-log-retention’ (kafka.utils.KafkaScheduler) > java.lang.NullPointerException > at kafka.log.Log.activeSegment(Log.scala:824) > at kafka.log.Log.deleteOldSegments(Log.scala:602) > at kafka.log.LogManager.kafka$log$LogManager -- This message was sent by Atlassian JIRA (v6.3.4#6332)