kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neha Narkhede (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-292) broker deletes all file segments when cleaning up an empty log segment
Date Mon, 05 Mar 2012 22:31:58 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222689#comment-13222689
] 

Neha Narkhede commented on KAFKA-292:
-------------------------------------

It will be very useful to have a unit test for this. Will make it easier to catch this in
the future.
                
> broker deletes all file segments when cleaning up an empty log segment
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-292
>                 URL: https://issues.apache.org/jira/browse/KAFKA-292
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>             Fix For: 0.7.1
>
>         Attachments: kafka-292.patch
>
>
> Suppose that a log has only one log segment left and it's empty. If that segment expires
and is deleted, we roll out a new segment of the same name. However, the deletion happens
after the log is rolled. This will make the log directory empty, which should never happen.

--
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

        

Mime
View raw message