apache zookeeper – In Kafka, the topic is not getting leader after recreation post deletion
Topic recreated after deletion does not have Leader defined. ISR is also empty. I have a kafka cluster of 3 nodes managed under 3 node Zookeeper ensemble.
Kafka – 2.5.8 and zookeeper 3.4.7
I had a topic called “Daily-heartbeat-G1” and this topic was deleted and recreated.
The topic was deleted from zookeeper directly as below :
Logged into Zookeeper CLI and ran below commands
rmr /brokers/topics/Daily-heartbeat-G1
rmr /config/topics/Daily-heartbeat-G1
rmr /admin/delete_topics/Daily-heartbeat-G1
Post this, topic was not getting listed.
Also deleted the corresponding directories from the kafka brokers as it were still present.
Now when we recreated the same topic with same name,it is showing Leader as “None” and ISR as empty.
I have not restarted the brokers after this though.
The questions I have is :
- What is causing Topic to not have Leader or why ISR is empty for such recreated topics?
the other freshly created topics are fine. - Should I have restarted the brokers after this deletion and recreation?
- Does it affect even if I dont delete the topic from kafka cli and directly delete it from zookeeper as shown above?
Have I missed anything out in this above process
Read more here: Source link