开发者

Kafka KRaft - Topic Deletion

开发者 https://www.devze.com 2022-12-07 20:57 出处:网络
When attempting to delete a topic using the kafka-topics.sh script, I can see that the topics in the log.dir are marked for deletion, but not all partitions belonging to the topic have been marked.

When attempting to delete a topic using the kafka-topics.sh script, I can see that the topics in the log.dir are marked for deletion, but not all partitions belonging to the topic have been marked.

Eventually, the partitions marked for deletion are in fact deleted, but the others remain and the topic remains in the topic list.

I have set delete.topic开发者_如何学Python.enable to true.

Is there a process to manually delete the topic when running in KRaft mode? I thought I could:

  1. Stop kafka
  2. Manually delete the folders from log.dir
  3. Restart kafka

However, I am wondering if I need to fire up kafka-metadata-shell.sh and run a rmr or rm command in there.

Any help or advice appreciated. Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消