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

Cleanup spurious .index files if present in the log directory on initialization

    XMLWordPrintableJSON

Details

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

    Description

      It is possible that an index file could somehow be left on the filesystem with no corresponding log file. This is not currently handled well. If the .index file happens to fall on the same offset as a new log segment, then when that segment is created terrible things will happen.

      We should check this condition on initialization and add some unit tests against it.

      Attachments

        1. KAFKA-670-v1.patch
          4 kB
          Jay Kreps

        Activity

          People

            jkreps Jay Kreps
            jkreps Jay Kreps
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: