Return-Path: X-Original-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-kafka-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A410F962C for ; Sat, 3 Mar 2012 01:48:42 +0000 (UTC) Received: (qmail 86118 invoked by uid 500); 3 Mar 2012 01:48:42 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 86073 invoked by uid 500); 3 Mar 2012 01:48:42 -0000 Mailing-List: contact kafka-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kafka-dev@incubator.apache.org Delivered-To: mailing list kafka-dev@incubator.apache.org Received: (qmail 86026 invoked by uid 99); 3 Mar 2012 01:48:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 01:48:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 01:48:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2409B68E5 for ; Sat, 3 Mar 2012 01:48:21 +0000 (UTC) Date: Sat, 3 Mar 2012 01:48:21 +0000 (UTC) From: "Jun Rao (Updated) (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <2045364190.17156.1330739301148.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <856536249.17048.1330739275494.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (KAFKA-292) broker deletes all file segments when cleaning up an empty log segment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/KAFKA-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jun Rao updated KAFKA-292: -------------------------- Status: Patch Available (was: Open) patch attached. > 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