Time-based log retention only happens on old log segments. And log compaction only happens on old segments as well.
Currently, I believe segments only roll whenever a new record is written to the log. That is, during the write of the new record is when the current segment is evaluated to see if it should be rolled. Is that true? That means that if there is *no* traffic on a topic, that the messages on disk may persist past the log retention time, or past the log compaction time. Is that the case? If so, is there any way to trigger rolling of a segment without active traffic on the topic? Thanks! -James
