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

Apurva Mehta commented on KAFKA-5269:
-------------------------------------

It turns out that the `UNKNOWN_TOPIC_OR_PARTITION` is returned from the request 
handler in KafkaAPis for the AddPartitionsToTxn and the TxnOffsetCommitRequest 
when the broker's metadata doesn't contain one or more partitions in the 
request. This can happen for instance when the broker is bounced and has not 
received the cluster metadata yet. 

The correct fix is simple: the client should retry the request when receiving 
this error. 

> TransactionBounceTest occasionally fails due to partition errors
> ----------------------------------------------------------------
>
>                 Key: KAFKA-5269
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5269
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Apurva Mehta
>            Assignee: Apurva Mehta
>            Priority: Blocker
>              Labels: exactly-once
>
> The test sometimes encounters a partition level error 
> `UNKNOWN_TOPIC_OR_PARTITION` for the output topic. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to