[ https://issues.apache.org/jira/browse/KAFKA-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153918#comment-13153918 ]
Jun Rao commented on KAFKA-209: ------------------------------- Actually, when all log segments are deleted, we automatically create an empty log file whose name is the latest offset. So the log directory will never be empty. > Remove empty directory when no log segments remain > -------------------------------------------------- > > Key: KAFKA-209 > URL: https://issues.apache.org/jira/browse/KAFKA-209 > Project: Kafka > Issue Type: Improvement > Components: core > Reporter: Taylor Gautier > > When the log cleaner runs it deletes segments from the log directory. > However, if all the segments are cleaned, the log directory itself is > retained. There doesn't seem to be any need for this as the directory will > be re-created on write if necessary. > This JIRA would improve the log cleaner to also remove unused topic > directories from the log directory. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira