kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guozhang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-5936) KafkaProducer should not wrap InterruptedException in close() with KafkaException
Date Sat, 23 Sep 2017 04:49:08 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-5936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guozhang Wang updated KAFKA-5936:
---------------------------------

*Reminder to the contributor / reviewer of the PR*: please note that the code deadline for
1.0.0 is less than 2 weeks away (Oct. 4th). Please re-evaluate your JIRA and see if it still
makes sense to be merged into 1.0.0 or it could be pushed out to 1.1.0, or be closed directly
if the JIRA itself is not valid any more, or re-assign yourself as contributor / committer
if you are no longer working on the JIRA.

> 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
>            Reporter: Matthias J. Sax
>            Assignee: Matthias J. Sax
>             Fix For: 1.0.0
>
>
> {{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)

Mime
View raw message