We are using kafka 0.9 and delete.topic.enable=true is set .After we delete topic, it shows "marked for deletion" but it still shows under topic list. After restarting brokers, it is gone.
Does that mean deleting a topic requires restart or some configuration property is missing.
Thanks in advance.
Although an old post, updating here for any future visitors: This issue occurs in most cases due to one or more of the brokers being unavailable, if not any of the above mentioned ones.
The controller node completes a topic deletion only after all the topic's partition replicas are removed from all the brokers.
So validate that brokers that are currently online by checking the following znode, since sometimes although the broker processes are in running status, they may not be actually part of the cluster because of various reasons such as memory contention and continuous GC cycles:
zk> ls /brokers/ids