Hi all,

I'm using Kafka 8.2.1 with two brokers hosting a handful of topics. Unfortunately, both broker service died. When I brought them back up, several partitions are unavailable:

> /opt/kafka/kafka-current/bin/kafka-topics.sh --zookeeper zoo1,zoo2,zoo3 --unavailable-partitions --describe
    Topic: topic1    Partition: 0    Leader: -1    Replicas: 1 Isr:
    Topic: topic1    Partition: 1    Leader: -1    Replicas: 1 Isr:
    Topic: topic2    Partition: 0    Leader: -1    Replicas: 1 Isr:
    Topic: topic2    Partition: 1    Leader: -1    Replicas: 1 Isr:
....

I've poked at the kafka-reassign-partitions.sh and kafka-preferred-replica-election.sh commands to see if those would help.

In the end, restarting one of the Kafka brokers twice seemed to fix the issue. My question is:

Should I have done anything differently? Is there any way to encourage/tell Kafka brokers what to host after a service failure and restart?

Thanks,

Jim

Reply via email to