kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atul Mohan <atulmohan....@gmail.com>
Subject Intermittent NoLeaderForPartition exceptions
Date Tue, 16 Jan 2018 19:00:56 GMT
We have 5 Kafka brokers and have a service that continuously send events to
partitions across these 5 brokers. The configuration works fine but every
90 minutes ~ 120 minutes, we lose several events due to the following

org.apache.kafka.common.errors.NotLeaderForPartitionException: This server
is not the leader for that topic-partition.

We use KafkaProducer.send() for sending events and since it works most of
the time except for these intermittent exceptions, we're not sure what is
the problem here.
We use 0.10.1 and our producer config is as follows:
"batch.size":524288, "request.timeout.ms":60000,
"max.request.size":10485760, "linger.ms":500, "metadata.max.age.ms":150000,

Could you please comment on what could be causing the issue?
Atul Mohan

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message