[
https://issues.apache.org/jira/browse/KAFKA-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588933#comment-13588933
]
Neha Narkhede commented on KAFKA-330:
-------------------------------------
Here is a broad description of how delete topic can work in Kafka -
1. The delete topic tool writes to a /delete_topics/[topic] path
2. The controller's delete topic listener fires and does the following -
2.1 List the partitions for the topic to be deleted
2.2 For each partition, do the following -
2.2.1 Move the partition to OfflinePartition state. Take the leader offline.
From this point on, all produce/consume requests for this partition will start
failing
2.2.2 For every replica for a partition, first move it to OfflineReplica state
(it is removed from isr) then to NonExistentReplica (send stop-replica request
with delete flag on to each replica)
2.3 Delete the /brokers/topics/[topic] path from zookeeper
2.4 Delete the /delete_topics/[topic] path to signify completion of the delete
operation
> Add delete topic support
> -------------------------
>
> Key: KAFKA-330
> URL: https://issues.apache.org/jira/browse/KAFKA-330
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.8
> Reporter: Neha Narkhede
> Assignee: Neha Narkhede
> Labels: features, p2, project
>
> One proposal of this API is here -
> https://cwiki.apache.org/confluence/display/KAFKA/Kafka+replication+detailed+design+V2#KafkareplicationdetaileddesignV2-Deletetopic
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira