kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apurva Mehta (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KAFKA-5865) Expiring batches with idempotence enabled could cause data loss.
Date Tue, 26 Sep 2017 00:43:00 GMT

     [ https://issues.apache.org/jira/browse/KAFKA-5865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Apurva Mehta updated KAFKA-5865:
    Fix Version/s:     (was: 1.1.0)

> Expiring batches with idempotence enabled could cause data loss.
> ----------------------------------------------------------------
>                 Key: KAFKA-5865
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5865
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions:
>            Reporter: Apurva Mehta
>            Assignee: Apurva Mehta
>             Fix For: 1.0.0
> Currently we have a problem with this line:
> https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java#L282
> Because we can reset the producer id and return after draining batches, it means that
we can drain batches for some partitions, then find a batch has expired, and then return.
But the batches which were drained are now no longer in the producer queue, and haven't been
sent. Thus they are totally lost, and the call backs will never be invoked.
> This is already fixed in https://github.com/apache/kafka/pull/3743 , but opening this
in case we want to fix it in as well.

This message was sent by Atlassian JIRA

View raw message