[
https://issues.apache.org/jira/browse/KAFKA-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491494#comment-14491494
]
Sriharsha Chintalapani commented on KAFKA-1397:
-----------------------------------------------
[~smiklosovic] I did a quick test on a single kafka 0.8.2.1 . I am not able to
reproduce this it takes a bit of time but the topic gets deleted.
Just to check make sure you don't have any producer or consumer sending any
requests while the delete topic is going on or just set
auto.creation.topic.enable to false in server.properties
./bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic test-topic
Topic:test-topic PartitionCount:10 ReplicationFactor:1 Configs:
Topic: test-topic Partition: 0 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 1 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 2 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 3 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 4 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 5 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 6 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 7 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 8 Leader: 0 Replicas: 0
Isr: 0
Topic: test-topic Partition: 9 Leader: 0 Replicas: 0
Isr: 0
⚙ ⮀ ~/build/kafka_2.10-0.8.2.1 ⮀
» ./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic test-topic
Topic test-topic is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.
⚙ ⮀ ~/build/kafka_2.10-0.8.2.1 ⮀
» ./bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic
test-topic
Topic:test-topic PartitionCount:10 ReplicationFactor:1 Configs:
Topic: test-topic Partition: 0 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 1 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 2 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 3 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 4 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 5 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 6 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 7 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 8 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 9 Leader: -1 Replicas: 0
Isr:
⚙ ⮀ ~/build/kafka_2.10-0.8.2.1 ⮀
» ./bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic
test-topic
Topic:test-topic PartitionCount:10 ReplicationFactor:1 Configs:
Topic: test-topic Partition: 0 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 1 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 2 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 3 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 4 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 5 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 6 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 7 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 8 Leader: -1 Replicas: 0
Isr:
Topic: test-topic Partition: 9 Leader: -1 Replicas: 0
Isr:
⚙ ⮀ ~/build/kafka_2.10-0.8.2.1 ⮀
» ./bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic
test-topic
Last command doesn't show the topic .
> delete topic is not working
> ----------------------------
>
> Key: KAFKA-1397
> URL: https://issues.apache.org/jira/browse/KAFKA-1397
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.8.2.0
> Reporter: Jun Rao
> Assignee: Timothy Chen
> Fix For: 0.8.2.0
>
> Attachments: KAFKA-1397.patch, KAFKA-1397_2014-04-28_14:48:32.patch,
> KAFKA-1397_2014-04-28_17:08:49.patch, KAFKA-1397_2014-04-30_14:55:28.patch,
> KAFKA-1397_2014-05-01_15:53:57.patch, KAFKA-1397_2014-05-01_18:12:24.patch,
> KAFKA-1397_2014-05-02_13:38:02.patch, KAFKA-1397_2014-05-05_11:17:59.patch,
> KAFKA-1397_2014-05-05_14:00:29.patch
>
>
> All unit tests are disabled since they hang transiently (see details in
> KAFKA-1391).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)