kafka/core
Sean Quah b14efd8750
KAFKA-19732, KAFKA-19716: Clear out coordinator snapshots periodically while loading (#20591)
When nested Timeline collections are created and discarded while loading
a coordinator partition, references to them accumulate in the current
snapshot. Allow the GC to reclaim them by starting a new snapshot and
discarding previous snapshots every 16,384 records.

Small intervals degrade loading times for non-transactional offset
commit workloads while large intervals degrade loading times for
transactional workloads. A default of 16,384 was chosen as a compromise.

Cherry pick of d067c6c040.

Reviewers: David Jacot <djacot@confluent.io>
2025-09-26 11:01:16 +02:00
..
src KAFKA-19732, KAFKA-19716: Clear out coordinator snapshots periodically while loading (#20591) 2025-09-26 11:01:16 +02:00
.gitignore KAFKA-4848: Fix retryWithBackoff deadlock issue 2017-03-20 21:56:15 -07:00