You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by pushkar priyadarshi <pr...@gmail.com> on 2015/10/01 17:49:01 UTC

Re: What happens when ISR is behind leader

Hi,

There are two properties which determines when does a replica falls off
sync.Look for replica.lag.time.max.ms and replica.lag.max.messages .If a
replica goes out of sync then it would not be even considered for leader
election.

Regards,
Pushkar

On Wed, Sep 30, 2015 at 9:44 AM, Shushant Arora <sh...@gmail.com>
wrote:

> Hi
>
> I have a kafka cluster with 2 brokers and replication as 2.
> Now say for a partition P1 leader broker b1 has offsets 1-10 and ISR broker
> is behind leader and now it has data for offsets (1-5) only. Now broker B1
> gets down and kafka elects B2 as leader for partition P1. Now new write for
> partition P1 will happen on B2 - what will be the offset of new message
> will it start from (5+1)=6 or (10+1)=11?
>
> And if it starts from 11 ? will offsets 6-10 will be missing ?
>
> Thanks
>