The log garbage collection will be triggered by either the size or the time based retention policy, which ever comes first. So, assuming the last segment hasn't been updated in retention time, it will be deleted and an empty segment will be rolled.
Thanks, Jun On Mon, Oct 8, 2012 at 11:05 AM, Liam Stewart <liam.stew...@gmail.com>wrote: > And the next question is, what happens when only the time based policy is > enabled? > > On Mon, Oct 8, 2012 at 10:23 AM, Liam Stewart <liam.stew...@gmail.com > >wrote: > > > What will Kafka do if a topic has a single log segment smaller than the > > retention size but is eligible for deletion based on retention time? I > > think that it will be kept because without it the remaining (zero) > segments > > will be below the log retention size - is that correct? > > > > liam > > > > -- > > Liam Stewart :: liam.stew...@gmail.com > > > > > > -- > Liam Stewart :: liam.stew...@gmail.com >