Re: Leader crash and data loss

2016-06-22 Thread Gerard Klijs
If your producer has acks set to 0, or if the retries is set to 0, in the properties, it will be lost, else it will most likely be retried and send to the new leader. On Thu, Jun 23, 2016 at 2:53 AM Saeed Ansari wrote: > Hi, > I searched a lot for my question and I did not find a good answer may

Leader crash and data loss

2016-06-22 Thread Saeed Ansari
Hi, I searched a lot for my question and I did not find a good answer may someone help me in this group? When leader broker for a partition fails, ZK elects a new leader and this may take seconds. What happens to data published to that broker during election? How Kafka handles messages to failed b