[
https://issues.apache.org/jira/browse/KAFKA-5936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245553#comment-16245553
]
Rajini Sivaram commented on KAFKA-5936:
---------------------------------------
[~mjsax] If this is not a blocker for 0.11.0.2, can I move this and KAFKA-4767
out to the next release? Thanks.
> KafkaProducer should not wrap InterruptedException in close() with
> KafkaException
> ---------------------------------------------------------------------------------
>
> Key: KAFKA-5936
> URL: https://issues.apache.org/jira/browse/KAFKA-5936
> Project: Kafka
> Issue Type: Bug
> Components: clients
> Affects Versions: 0.11.0.0, 0.11.0.1, 1.0.0
> Reporter: Matthias J. Sax
> Assignee: Matthias J. Sax
> Fix For: 0.11.0.2, 1.1.0, 1.0.1
>
>
> {{KafkaProducer.close()}} catches an {{InterruptedException}} when joining
> the sender thread and rethrows it later as a {{KafkaException}}. This prevent
> the interrupt signal to bubble out of the producer and thus, the caller might
> miss the interrupt.
> We should rather throw our own
> {{org.apache.kafka.common.errors.InterruptException}} similar to
> {{KafkaConsumer}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)