I want to handle the case if Kafka Broker is down on the Kafka Producer end then its taking longer time to show the below error.
Failed to send; nested exception is org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for logging-0: 30030 ms has passed since batch creation plus linger time
How to handle this?