Re: Kafka topic-partition won't serve if prefered election fails for a partition.

2016-08-13 Thread R Krishna
Sorry, am a newbie myself, I was adding to the scenario where broker has gone down and not come up when replication is 1, and a new leader is elected, it will be the leader for this topic/partition, but if other broker is down, it might not have the offsets? On Sat, Aug 13, 2016 at 1:22 PM, Sudev

Re: Kafka topic-partition won't serve if prefered election fails for a partition.

2016-08-13 Thread Sudev A C
No why wouldn't the partition come back ? Before preferred election there was leader serving the requests during election when it tries to elect the preferred leader and the preferred leader happens not to be in in ISR, fallback to leader leader happens. After this producing/consuming from this par

Re: Kafka topic-partition won't serve if prefered election fails for a partition.

2016-08-13 Thread R Krishna
But, isn't that assuming your topics are replicated to all brokers, in your case there are no offsets probably for this reason too. On Fri, Aug 12, 2016 at 2:23 PM, Zakee wrote: > Typically "preferred leader election” would fail if/when one or more > brokers still did not come back online after

Re: Kafka topic-partition won't serve if prefered election fails for a partition.

2016-08-12 Thread Zakee
Typically "preferred leader election” would fail if/when one or more brokers still did not come back online after being down for some time. Is that your scenario? -Zakee > On Aug 11, 2016, at 12:42 AM, Sudev A C wrote: > > Hi, > > With *auto.leader.rebalance.enable=true* Kafka runs preferre

Kafka topic-partition won't serve if prefered election fails for a partition.

2016-08-11 Thread Sudev A C
Hi, With *auto.leader.rebalance.enable=true* Kafka runs preferred election tool in regular intervals rebalancing topic-partition leaders. Now if preferred election fails to elect the preferred leader for a topic partition it falls back to any other leader in ISR. But for us in production when thi