You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "David Jacot (Jira)" <ji...@apache.org> on 2025/09/19 07:47:00 UTC

[jira] [Updated] (KAFKA-19716) OOM when loading large uncompacted __consumer_offsets partitions with transactional workload

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

David Jacot updated KAFKA-19716:
--------------------------------
    Affects Version/s: 4.1.0
                       4.0.0

> OOM when loading large uncompacted __consumer_offsets partitions with transactional workload
> --------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-19716
>                 URL: https://issues.apache.org/jira/browse/KAFKA-19716
>             Project: Kafka
>          Issue Type: Bug
>          Components: group-coordinator
>    Affects Versions: 4.0.0, 4.1.0
>            Reporter: Sean Quah
>            Assignee: Sean Quah
>            Priority: Minor
>
> When loading a large poorly compacted __consumer_offsets partition with a transactional workload (alternating transaction offset commits and commit markers), we create and discard lots of TimelineHashMaps. These accumulate in the SnapshotRegistry's rollback mechanism. Overall, memory usage is linear in the size of the partition.
> We can commit the snapshot every N offsets in {{{}CoordinatorLoaderImpl{}}}, to allow the memory to be reclaimed.



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