Description
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.
Attachments
Issue Links
- relates to
-
KAFKA-4767 KafkaProducer is not joining its IO thread properly
- Resolved
- links to