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
Later, it’s fine to re-create the topic, it should be that some things were not deleted when rebuilding