[
https://issues.apache.org/jira/browse/KAFKA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135811#comment-14135811
]
Sriharsha Chintalapani commented on KAFKA-1558:
-----------------------------------------------
Thanks [~junrao]
Case 2 works fine too the topic gets deleted.
Case 6 when I do kill -9 on the controller and immediately run delete topic
from the same node or on different node
one of the brokers goes on printing these messages
[2014-09-16 16:38:17,607] INFO Reconnect due to socket error:
java.nio.channels.ClosedChannelException (kafka.consumer.SimpleConsumer)
[2014-09-16 16:38:17,608] WARN [ReplicaFetcherThread-0-1], Error in fetch Name:
FetchRequest; Version: 0; CorrelationId: 955460; ClientId: ReplicaFetcherThre
ad-0-1; ReplicaId: 2; MaxWait: 500 ms; MinBytes: 1 bytes; RequestInfo:
[my-topic,1] -> PartitionFetchInfo(2558522,1048576). Possible cause:
java.nio.channels
.ClosedChannelException (kafka.server.ReplicaFetcherThread)
I've to restart this broker and delete topic goes fine.
But if I wait after killing(kill -9) controller and fetcher is removed delete
topic goes fine without any issues
[ReplicaFetcherManager on broker 3] Removed fetcher for partitions [my-topic,1]
(kafka.server.ReplicaFetcherManager)
[2014-09-16 16:56:58,646] INFO [ReplicaFetcherManager on broker 3] Removed
fetcher for partitions [my-topic,0] (kafka.server.ReplicaFetcherManager)
I am not sure if its related to delete topic though any ideas on this.
> 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)