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

tony tang updated KAFKA-20726:
------------------------------
    Description: 
{{KRaftControlRecordStateMachine}} uses {{DefaultSupplier}} for its entire 
lifetime. {{DefaultSupplier}} caches one buffer per distinct capacity and never 
evicts, causing unbounded memory growth. 

We want to fix by not reusing the BufferSupplier in kraft state machine

  was:
{{KRaftControlRecordStateMachine}} uses {{DefaultSupplier}} for its entire 
lifetime. {{DefaultSupplier}} caches one buffer per distinct capacity and never 
evicts, causing unbounded memory growth as {{__cluster_metadata}} batches vary 
in size. 

We want to fix by not reusing the BufferSupplier in kraft state machine


> Don't reuse the BufferSupplier in kraft state machine
> -----------------------------------------------------
>
>                 Key: KAFKA-20726
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20726
>             Project: Kafka
>          Issue Type: Bug
>          Components: kraft
>            Reporter: tony tang
>            Assignee: tony tang
>            Priority: Major
>
> {{KRaftControlRecordStateMachine}} uses {{DefaultSupplier}} for its entire 
> lifetime. {{DefaultSupplier}} caches one buffer per distinct capacity and 
> never evicts, causing unbounded memory growth. 
> We want to fix by not reusing the BufferSupplier in kraft state machine



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

Reply via email to