You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "il-kyun (via GitHub)" <gi...@apache.org> on 2026/10/23 05:56:36 UTC
Re: [PR] KAFKA-21316: Reuse nodes in PartitionStates to avoid retaining removed entries [kafka]
il-kyun commented on PR #23839:
URL: https://github.com/apache/kafka/pull/23839#issuecomment-6358483994
@chia7712 @junrao could you take a look when you have time? This fixes young GC slowdowns on follower brokers: PartitionStates leaves removed LinkedHashMap entries chained through next, and once one of them is promoted, every young GC copies the whole chain. The fix reuses the node instead of remove + put.
I filed https://issues.apache.org/jira/browse/KAFKA-21316 and added it to the title. The Jira also has more test results: reproduction on three test clusters with and without the patch (longest chain 838-339,594 before, 2-4 after), wider regression runs, and production numbers.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org