KIP-1366 — Configurable Segment Interval for Window and Session Stores
Discussion Streams
Exposes `segmentInterval` as an optional parameter on the `Stores` factory methods for window and session stores, following the pattern KIP-889 established for versioned key-value stores. The interval is currently derived as `max(retentionPeriod / 2, 60_000ms)`, so any retention change shifts segment boundaries and forces a full changelog restore, and long retentions produce oversized active segments that hurt RocksDB compaction and cache-hit ratios.
Details
| Author | Hannes Buseyne |
| Status | Discussion |
| JIRA | KAFKA-20801 |
| Wiki | View on Apache Wiki |
| Created | 2026-07-13 |
| Last Modified | 2026-07-13 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.