[
https://issues.apache.org/jira/browse/KAFKA-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14050258#comment-14050258
]
Jun Rao commented on KAFKA-1507:
--------------------------------
Both the produce and the consumer client will issue TopicMetadataRequest.
Topics should probably be only auto-created by the writers, not the readers,
i.e., it makes sense for topics to be auto-created by the producers, but not by
the consumer or offset reader.
One way to do that is to add a field in TopicMetadataRequest to indicate wether
topic should be auto-created or not. This will be a wire protocol change
though. So, we will have to support both versions on the broker.
> Using GetOffsetShell against non-existent topic creates the topic
> unintentionally
> ---------------------------------------------------------------------------------
>
> Key: KAFKA-1507
> URL: https://issues.apache.org/jira/browse/KAFKA-1507
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.8.1.1
> Environment: centos
> Reporter: Luke Forehand
> Assignee: Sriharsha Chintalapani
> Priority: Minor
> Labels: newbie
>
> A typo in using GetOffsetShell command can cause a
> topic to be created which cannot be deleted (because deletion is still in
> progress)
> ./kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list
> kafka10:9092,kafka11:9092,kafka12:9092,kafka13:9092 --topic typo --time 1
> ./kafka-topics.sh --zookeeper stormqa1/kafka-prod --describe --topic typo
> Topic:typo PartitionCount:8 ReplicationFactor:1 Configs:
> Topic: typo Partition: 0 Leader: 10 Replicas: 10
> Isr: 10
> ...
--
This message was sent by Atlassian JIRA
(v6.2#6252)