Hi everyone, I'd like to open a discussion thread for KIP-1366.
KIP Page: https://cwiki.apache.org/confluence/spaces/KAFKA/pages/440304328/KIP-1366+Configurable+Segment+Interval+for+Window+and+Session+Stores This KIP proposes exposing the low-level segmentInterval configuration for window and session state stores in the public API, following the pattern established for versioned stores in KIP-889. Currently, this interval is auto-calculated based on retention.This means a simple change to a store's retention window unexpectedly changes segment boundaries, which alters the on-disk directory layout and forces a disruptive state store restoration loop from the changelog. It also leaves developers unable to optimize active segment sizes for heavy workloads that primarily read recent data. To fix this, we propose adding additive method overloads to the `Stores` factory class that accept an explicit segmentInterval Duration. Please take a look at the KIP page for the specific signatures and validation rules. I look forward to your feedback! Best regards, Hannes
