You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Joel Koshy (JIRA)" <ji...@apache.org> on 2014/04/08 23:24:15 UTC

[jira] [Commented] (KAFKA-1373) LogCleaner assumes first dirty offset zero if there is no cleaner checkpoint

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

Joel Koshy commented on KAFKA-1373:
-----------------------------------

Created reviewboard https://reviews.apache.org/r/20130/
 against branch origin/trunk

> LogCleaner assumes first dirty offset zero if there is no cleaner checkpoint
> ----------------------------------------------------------------------------
>
>                 Key: KAFKA-1373
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1373
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Joel Koshy
>            Assignee: Joel Koshy
>             Fix For: 0.8.1.1
>
>         Attachments: KAFKA-1373.patch
>
>
> If you try enabling the compaction policy on a topic that already exists and if its first segment starts with anything other than zero you will see something like this:
> java.lang.IllegalArgumentException: requirement failed: Last clean offset is 0 but segment base offset is 2722629 for log test-0.
>         at scala.Predef$.require(Predef.scala:145)
>         at kafka.log.Cleaner.buildOffsetMap(LogCleaner.scala:489)
>         at kafka.log.Cleaner.clean(LogCleaner.scala:287)
>         at kafka.log.LogCleaner$CleanerThread.cleanOrSleep(LogCleaner.scala:203)
>         at kafka.log.LogCleaner$CleanerThread.doWork(LogCleaner.scala:188)
>         at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:51)



--
This message was sent by Atlassian JIRA
(v6.2#6252)