You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ritika Reddy (Jira)" <ji...@apache.org> on 2025/05/22 16:50:00 UTC

[jira] [Assigned] (KAFKA-18042) Reject the produce request with lower producer epoch early.

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

Ritika Reddy reassigned KAFKA-18042:
------------------------------------

    Assignee: Ritika Reddy  (was: TaiJuWu)

> Reject the produce request with lower producer epoch early.
> -----------------------------------------------------------
>
>                 Key: KAFKA-18042
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18042
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Calvin Liu
>            Assignee: Ritika Reddy
>            Priority: Minor
>
> With the transaction V2, replica manager checks whether the incoming producer request produces to a partition belonging to a transaction. ReplicaManager figures this out by checking the producer epoch stored in the partition log. However, the current code does not reject the produce request if its producer epoch is lower than the stored producer epoch. It is an optimization to reject such requests earlier instead of sending an AddPartitionToTxn request and getting rejected in the response.



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