You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2017/09/19 22:46:00 UTC

[jira] [Created] (KAFKA-5936) KafkaProducer should not wrap InterruptedException in close() with KafkaException

Matthias J. Sax created KAFKA-5936:
--------------------------------------

             Summary: 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)