You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Guozhang Wang (Jira)" <ji...@apache.org> on 2021/10/12 20:35:00 UTC

[jira] [Resolved] (KAFKA-13319) Do not send AddOffsetsToTxn/TxnOffsetCommit if offsets map is empty

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

Guozhang Wang resolved KAFKA-13319.
-----------------------------------
    Fix Version/s: 3.1.0
         Assignee: Guozhang Wang  (was: Ryan)
       Resolution: Fixed

> Do not send AddOffsetsToTxn/TxnOffsetCommit if offsets map is empty
> -------------------------------------------------------------------
>
>                 Key: KAFKA-13319
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13319
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Jason Gustafson
>            Assignee: Guozhang Wang
>            Priority: Major
>              Labels: newbie
>             Fix For: 3.1.0
>
>
> If a user calls `Producer.sendOffsetsToTransaction` with an empty map of offsets, we can shortcut return and skip the logic to add the offsets topic to the transaction. The main benefit is avoiding the unnecessary accumulation of markers in __consumer_offsets.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)