Hi there, The missing piece is the config `log.roll.hours` or it's alternative ` log.roll.ms`. Log segments are by default rolled once a week, regardless of activity, but you can tune that down as you like.
Thanks Tom Crayford Heroku Kafka On Fri, May 20, 2016 at 12:49 AM, James Cheng <wushuja...@gmail.com> wrote: > 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 > >