[Kafka] When kafka starts, the log finds a corrupted index file

Insert picture description here

1. Background

This is the case. I rebuilt the topic and physically deleted the data, but when I check the details of the kafka topic, I get an error leader = -1 or Null.

And the magic is that my cluster has 3 machines, but the first machine always dies after starting up, and there is no error message, the following logs are displayed when restarting

Insert picture description here
Later, it’s fine to re-create the topic, it should be that some things were not deleted when rebuilding

See bug: https://issues.apache.org/jira/browse/KAFKA-4972

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/110890005