[
https://issues.apache.org/jira/browse/KAFKA-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13977083#comment-13977083
]
Guozhang Wang commented on KAFKA-1412:
--------------------------------------
I think this is a duplicate of KAFKA-1395. My proposal is to unify
createProducer to ensure acks = -1 and type = sync, in which after the send
call if no exception is thrown for failed message sending we are assured that
the topic is created, hence no need to check waitUntilMetadataIsPropagated
either.
> transient unit test failure in ProducerSendTest.testAutoCreateTopic
> -------------------------------------------------------------------
>
> Key: KAFKA-1412
> URL: https://issues.apache.org/jira/browse/KAFKA-1412
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.2
> Reporter: Jun Rao
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Saw the following transient failure.
> kafka.api.test.ProducerSendTest > testAutoCreateTopic FAILED
> java.util.concurrent.ExecutionException:
> org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This server
> does not host this topic-partition.
> at
> org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError(FutureRecordMetadata.java:56)
> at
> org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:43)
> at
> org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:25)
> at
> kafka.api.test.ProducerSendTest.testAutoCreateTopic(ProducerSendTest.scala:254)
> Caused by:
> org.apache.kafka.common.errors.UnknownTopicOrPartitionException: This
> server does not host this topic-partition.
--
This message was sent by Atlassian JIRA
(v6.2#6252)