linkedin / li-apache-kafka-clients

li-apache-kafka-clients is a wrapper library for the Apache Kafka vanilla clients. It provides additional features such as large message support and auditing to the Java producer and consumer in the open source Apache Kafka.
BSD 2-Clause "Simplified" License
131 stars 52 forks source link

Log the exception as warning for Auditor during shutdown. #157

Closed viswamy closed 4 years ago

viswamy commented 4 years ago

If the timeout passed to auditingKafkaProducer#close() method is very short, it can so happen that the producer might get closed before all the audit counts are flushed raising IllegalArgumentException.

This change logs such exceptions during the shutdown as a warning instead of an error.