I have read When does the Apache Kafka client throw a "Batch Expired" exception?, but I feel like I'm missing something.
For my program I don't need high throughput, so I've created a "blocking" write:
kafkaProducer.send(record).get();
Why would this give me a batch expired error sometimes?
java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for test2-0: 42084 ms has passed since batch creation plus linger time