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

Cleaner gets confused about deleted and re-created topics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.8.2.0
    • None
    • None

    Description

      I get an error like this after deleting a compacted topic and re-creating it. I think it's because the brokers don't remove cleaning checkpoints from the cleaner-offset-checkpoint file. This is from a build based off commit bd212b7.

      java.lang.IllegalArgumentException: requirement failed: Last clean offset is 587607 but segment base offset is 0 for log foo-6.
      at scala.Predef$.require(Predef.scala:233)
      at kafka.log.Cleaner.buildOffsetMap(LogCleaner.scala:502)
      at kafka.log.Cleaner.clean(LogCleaner.scala:300)
      at kafka.log.LogCleaner$CleanerThread.cleanOrSleep(LogCleaner.scala:214)
      at kafka.log.LogCleaner$CleanerThread.doWork(LogCleaner.scala:192)
      at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:60)

      Attachments

        1. KAFKA-1819.patch
          5 kB
          Gwen Shapira
        2. KAFKA-1819_2014-12-26_13:58:44.patch
          11 kB
          Gwen Shapira
        3. KAFKA-1819_2014-12-30_16:01:19.patch
          15 kB
          Gwen Shapira
        4. KAFKA-1819_2015-01-12_10:34:07.patch
          30 kB
          Gwen Shapira
        5. KAFKA-1819_2015-01-12_11:17:53.patch
          18 kB
          Gwen Shapira
        6. KAFKA-1819_2015-01-12_17:01:53.patch
          21 kB
          Gwen Shapira

        Activity

          People

            gwenshap Gwen Shapira
            gian Gian Merlino
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: