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 B9EE1D400 for ; Fri, 2 Nov 2012 18:33:12 +0000 (UTC) Received: (qmail 51918 invoked by uid 500); 2 Nov 2012 18:33:12 -0000 Delivered-To: apmail-incubator-kafka-dev-archive@incubator.apache.org Received: (qmail 51880 invoked by uid 500); 2 Nov 2012 18:33:12 -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 51775 invoked by uid 99); 2 Nov 2012 18:33:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2012 18:33:12 +0000 Date: Fri, 2 Nov 2012 18:33:12 +0000 (UTC) From: "Swapnil Ghike (JIRA)" To: kafka-dev@incubator.apache.org Message-ID: <879270637.61968.1351881192498.JavaMail.jiratomcat@arcas> In-Reply-To: <219135262.51144.1351702152421.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (KAFKA-596) LogSegment.firstAppendTime not reset after truncate to MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KAFKA-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapnil Ghike updated KAFKA-596: -------------------------------- Attachment: kafka-596-v2.patch Yes, I see your point. Attached a new patch. > LogSegment.firstAppendTime not reset after truncate to > ------------------------------------------------------ > > Key: KAFKA-596 > URL: https://issues.apache.org/jira/browse/KAFKA-596 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.8 > Reporter: Jun Rao > Assignee: Swapnil Ghike > Labels: bugs > Attachments: kafka-596.patch, kafka-596-v2.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > Currently, we don't reset LogSegment.firstAppendTime after the segment is truncated. What can happen is that we truncate the segment to size 0 and on next append, a new log segment with the same starting offset is rolled because the time-based rolling is triggered. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira