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

Kafka 0.10.0 Found a corrupted index file during Kafka broker startup

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.10.0.0
    • None
    • log
    • JDK: HotSpot x64 1.7.0_80
      Tag: 0.10.0

    Description

      -deleted text-After force shutdown all kafka brokers one by one, restart them one by one, but a broker startup failure.

      The following WARN leval log was found in the log file:
      found a corrutped index file, xxxx.index , delet it ...

      you can view details by following attachment.

      ~I look up some codes in core module, found out :

      the nonthreadsafe method LogSegment.append(offset, messages) has tow caller:

      1) Log.append(messages) // here has a synchronized lock
      2) LogCleaner.cleanInto(topicAndPartition, source, dest, map, retainDeletes, messageFormatVersion) // here has not

      So I guess this may be the reason for the repeated offset in 00000xx.log file (logsegment's .log) ~

      Although this is just my inference, but I hope that this problem can be quickly repaired

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            f1194361820 fangjinuo

            Dates

              Created:
              Updated:

              Slack

                Issue deployment