Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 52889 invoked from network); 29 Jun 2010 00:25:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jun 2010 00:25:15 -0000 Received: (qmail 35142 invoked by uid 500); 29 Jun 2010 00:25:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 35089 invoked by uid 500); 29 Jun 2010 00:25:14 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 35081 invoked by uid 99); 29 Jun 2010 00:25:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 00:25:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 00:25:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5T0OouZ024124 for ; Tue, 29 Jun 2010 00:24:50 GMT Message-ID: <1630767.103441277771090255.JavaMail.jira@thor> Date: Mon, 28 Jun 2010 20:24:50 -0400 (EDT) From: "Jean-Daniel Cryans (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-2070) Collect HLogs and delete them after a period of time 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/HBASE-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883365#action_12883365 ] Jean-Daniel Cryans commented on HBASE-2070: ------------------------------------------- Sure, but we'd need to refactor class names (OldLogCleaner to ArchivedLogCleaner is the first one that comes in mind). > Collect HLogs and delete them after a period of time > ---------------------------------------------------- > > Key: HBASE-2070 > URL: https://issues.apache.org/jira/browse/HBASE-2070 > Project: HBase > Issue Type: Sub-task > Reporter: Jean-Daniel Cryans > Assignee: Jean-Daniel Cryans > Fix For: 0.21.0 > > Attachments: HBASE-2070-v2.patch, HBASE-2070-v3.patch, HBASE-2070-v4.patch, HBASE-2070.patch > > > For replication we need to be able to service clusters that are a few hours behind in edits. For example, after distcp'ing a snapshot of the DB to another cluster, we need to make sure we get the edits that came in after the snapshot was taken. > I plan the following changes: > - Instead of deleting HLogs during a log roll or after a log split, move them to another folder where all logs should be aggregated. > - Add a new configuration for how old a log can be. For a normal cluster I think of a default of 2 hours. For replication you may want to set it much higher. > - Create a new thread in the master that checks for logs older than configured time and that deletes them. > I also fancy having the deletion time to be configurable while the cluster is running. I'm also thinking of adding a way to tell the cluster to replay edits on itself. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.