[
https://issues.apache.org/jira/browse/KAFKA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152809#comment-14152809
]
Sriharsha Chintalapani commented on KAFKA-1558:
-----------------------------------------------
[~nehanarkhede] [~junrao] Sorry couldn't get to work on this earlier. I spent
more time on case 2 I can consistently reproduce this failure.
1) kill -SIGSTOP pid
2) wait for zookeeper timeout
3) kill -SIGCONT pid
4) immediately delete a topic
5) new controller keeps printing these messages
DeleteTopicThread goes in a loop. I am attaching thread dump from this broker.
[2014-09-30 05:21:39,598] INFO [delete-topics-thread-3], Handling deletion for
topics my-topic-110 (kafka.controller.TopicDeletionManager$DeleteTopicsThread)
[2014-09-30 05:21:39,598] DEBUG [Replica state machine on controller 3]: Are
all replicas for topic my-topic-110 deleted
Map([Topic=my-topic-110,Partition=1,Replica=2] -> ReplicaDeletionSuccessful,
[Topic=my-topic-110,Partition=1,Replica=3] -> ReplicaDeletionSuccessful,
[Topic=my-topic-110,Partition=0,Replica=1] -> OfflineReplica,
[Topic=my-topic-110,Partition=0,Replica=2] -> ReplicaDeletionSuccessful)
(kafka.controller.ReplicaStateMachine)
[2014-09-30 05:21:39,599] INFO [delete-topics-thread-3], Not retrying deletion
of topic my-topic-110 at this time since it is marked ineligible for deletion
(kafka.controller.TopicDeletionManager$DeleteTopicsThread)
[2014-09-30 05:21:39,599] INFO [delete-topics-thread-3], Handling deletion for
topics my-topic-110 (kafka.controller.TopicDeletionManager$DeleteTopicsThread)
[2014-09-30 05:21:39,599] DEBUG [Replica state machine on controller 3]: Are
all replicas for topic my-topic-110 deleted
Map([Topic=my-topic-110,Partition=1,Replica=2] -> ReplicaDeletionSuccessful,
[Topic=my-topic-110,Partition=1,Replica=3] -> ReplicaDeletionSuccessful,
[Topic=my-topic-110,Partition=0,Replica=1] -> OfflineReplica,
[Topic=my-topic-110,Partition=0,Replica=2] -> ReplicaDeletionSuccessful)
(kafka.controller.ReplicaStateMachine)
[2014-09-30 05:21:39,599] INFO [delete-topics-thread-3], Not retrying deletion
of topic my-topic-110 at this time since it is marked ineligible for deletion
(kafka.controller.TopicDeletionManager$DeleteTopicsThread)
> AdminUtils.deleteTopic does not work
> ------------------------------------
>
> Key: KAFKA-1558
> URL: https://issues.apache.org/jira/browse/KAFKA-1558
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.8.1.1
> Reporter: Henning Schmiedehausen
> Assignee: Sriharsha Chintalapani
> Priority: Blocker
> Fix For: 0.8.2
>
>
> the AdminUtils:.deleteTopic method is implemented as
> {code}
> def deleteTopic(zkClient: ZkClient, topic: String) {
> ZkUtils.createPersistentPath(zkClient,
> ZkUtils.getDeleteTopicPath(topic))
> }
> {code}
> but the DeleteTopicCommand actually does
> {code}
> zkClient = new ZkClient(zkConnect, 30000, 30000, ZKStringSerializer)
> zkClient.deleteRecursive(ZkUtils.getTopicPath(topic))
> {code}
> so I guess, that the 'createPersistentPath' above should actually be
> {code}
> def deleteTopic(zkClient: ZkClient, topic: String) {
> ZkUtils.deletePathRecursive(zkClient, ZkUtils.getTopicPath(topic))
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)