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 <saeed.ans...@gmail.com> wrote:

> 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 broker?
>
>
> Thank you,
> Saeed
>

Reply via email to