You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Kafka Shil <ka...@gmail.com> on 2020/05/21 01:06:13 UTC

Kafka consumer is taking time to recognize new partition

I was running a test where kafka consumer was reading data from multiple
partitions of a topic. While the process was running I added more
partitions. It took around 5 minutes for consumer thread to read data from
the new partition. I have found this configuration "
topic.metadata.refresh.interval.ms", but this is for producer only. Is
there a similar config for consumer too?

Re: Kafka consumer is taking time to recognize new partition

Posted by Liam Clarke-Hutchinson <li...@adscale.co.nz>.
Hi,

You want metadata.max.age.ms which, as you noticed, defaults to 5 minutes
:)

https://kafka.apache.org/documentation/#metadata.max.age.ms

Cheers,

Liam Clarke-Hutchinson

On Thu, May 21, 2020 at 1:06 PM Kafka Shil <ka...@gmail.com> wrote:

> I was running a test where kafka consumer was reading data from multiple
> partitions of a topic. While the process was running I added more
> partitions. It took around 5 minutes for consumer thread to read data from
> the new partition. I have found this configuration "
> topic.metadata.refresh.interval.ms", but this is for producer only. Is
> there a similar config for consumer too?
>