kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Arthur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-689) Can't append to a topic/partition that does not already exist
Date Wed, 09 Jan 2013 16:34:13 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548648#comment-13548648

David Arthur commented on KAFKA-689:

I don't disagree really, but what I'm saying is: why not piggyback topic creation onto the
metadata API? 

Instead of: 

    MetadataRequest => Topic
    Topic => Name [Topic]

you could have:

    MetadataRequest => Topic
    Topic => Name CreateIfNotExist [Topic]

It would be a lot less code than a whole new API.
> Can't append to a topic/partition that does not already exist
> -------------------------------------------------------------
>                 Key: KAFKA-689
>                 URL: https://issues.apache.org/jira/browse/KAFKA-689
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 0.8
>            Reporter: David Arthur
>         Attachments: kafka.log, produce-payload.bin
> With a totally fresh Kafka (empty logs dir and empty ZK), if I send a ProduceRequest
for a new topic, Kafka responds with "kafka.common.UnknownTopicOrPartitionException: Topic
test partition 0 doesn't exist on 0". This is when sending a ProduceRequest over the network
(from Python, in this case).
> If I use the console producer it works fine (topic and partition get created). If I then
send the same payload from before over the network, it works.

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

View raw message