You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Matthias J. Sax (Jira)" <ji...@apache.org> on 2023/02/24 20:00:03 UTC

[jira] [Assigned] (KAFKA-5870) Idempotent producer: a producerId reset causes undesirable behavior for inflight batches to other partitions

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

Matthias J. Sax reassigned KAFKA-5870:
--------------------------------------

    Assignee:     (was: Apurva Mehta)

> Idempotent producer: a producerId reset causes undesirable behavior for inflight batches to other partitions
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-5870
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5870
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.11.0.0
>            Reporter: Apurva Mehta
>            Priority: Major
>              Labels: exactly-once
>
> Currently, if we have to reset the producer id for any reason (for instance if batches to a partition get expired, if we get an {{OutOfOrderSequenceException}}, etc) we could cause batches to other --healthy-- partitions to fail with a spurious {{OutOfOrderSequenceException}}.
> This is detailed in this PR discussion: https://github.com/apache/kafka/pull/3743#discussion_r137907630
> Ideally, we would want all inflight batches to be handled to completion rather than potentially failing them prematurely. Further, since we want to tighten up the semantics of the {{OutOfOrderSequenceException}}, at the very least we should raise another exception in this case, because there is no data loss on the broker when the client gives up. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)