Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 89749 invoked from network); 30 Aug 2007 21:24:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Aug 2007 21:24:54 -0000 Received: (qmail 84174 invoked by uid 500); 30 Aug 2007 21:24:49 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 84143 invoked by uid 500); 30 Aug 2007 21:24:48 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 84134 invoked by uid 99); 30 Aug 2007 21:24:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 14:24:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2007 21:25:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9966371420D for ; Thu, 30 Aug 2007 14:24:30 -0700 (PDT) Message-ID: <4968009.1188509070625.JavaMail.jira@brutus> Date: Thu, 30 Aug 2007 14:24:30 -0700 (PDT) From: "stack (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-1820) [hbase] regionserver creates hlogs without bound In-Reply-To: <30507244.1188505111278.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-1820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HADOOP-1820: -------------------------- Attachment: excerpt.log > [hbase] regionserver creates hlogs without bound > ------------------------------------------------ > > Key: HADOOP-1820 > URL: https://issues.apache.org/jira/browse/HADOOP-1820 > Project: Hadoop > Issue Type: Improvement > Components: contrib/hbase > Reporter: stack > Priority: Minor > Attachments: excerpt.log > > > Regionserver keeps log of all edits for all the regions its carrying. Its used recoverying state if a regionserver crashes: edits that have not been persisted to an HStoreFile are rerun to populate memcache which in turn is converted to an on-filesytem HStoreFile. On a period, the log is rotated and a new one is opened. While the region server is up, the logs grow in number without bound. Only the most recent contain unpersisted edits. If the region server goes down clean, then its logs are cleaned up. If a region server crashes, as part of recovery, the logs of edits are sorted and split per region. Recovery would run faster if it did not have to plough through reams of stale edits. > Just now, I had a host crash w/ 112 log files each of 30k plus edits each. > We could rename the log rolling thread the log maintainer. As well as rolling logs, it could check for edit logs to clean. When rolled, logs could be marked with the sequence id of their last contained edit. The thread could on a period ask each hosted region for the "lowest highest" sequence id of all regions deployed. Once this number had crossed out that on a particular log, the log could be cleaned up safely. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.