You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Sharath Raghavan <sh...@gmail.com> on 2016/09/08 15:09:43 UTC
org.apache.kafka.common.errors.TimeoutException: Batch Expired
Hello everyone,
We have seen this exception couple of times -
"org.apache.kafka.common.errors.TimeoutException: Batch Expired".
It doesn't happen all the time but mostly during hiccups in network. There
is an open jira KAFKA-3686
<https://issues.apache.org/jira/browse/KAFKA-3686>.
I’m planning to try with higher values for request.timeout.ms (up to 15000
or so) in few days.
*Question:*
Did anyone face this issue? If so, were you able to tweak the producer to
minimize it?
Suggestions are welcome.
*Other details:*
We use Kafka 0.9.0.1, async producer.
Producer properties:
batch.size=921600
linger.ms=0
request.timeout.ms=5000
acks=1
retries=5
compression.type=none
and mostly default values for other producer properties.
*Thanks,*
*Sharath*
--
Best Regards,
Sharath