Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 77216 invoked from network); 4 Jun 2007 22:48:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 22:48:48 -0000 Received: (qmail 65927 invoked by uid 500); 4 Jun 2007 22:48:52 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 65662 invoked by uid 500); 4 Jun 2007 22:48:51 -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 65622 invoked by uid 99); 4 Jun 2007 22:48:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 15:48:50 -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; Mon, 04 Jun 2007 15:48:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A7694297CD for ; Mon, 4 Jun 2007 15:48:26 -0700 (PDT) Message-ID: <5882826.1180997306301.JavaMail.jira@brutus> Date: Mon, 4 Jun 2007 15:48:26 -0700 (PDT) From: "Jim Kellerman (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1421) When a region server dies, its log must be distributed to all the new servers that have been assigned its regions In-Reply-To: <31536774.1179876496145.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-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501399 ] Jim Kellerman commented on HADOOP-1421: --------------------------------------- On a clean shutdown, each region is closed by the HRegionServer. The steps of closing a region are: 1. flush memcache to HLog 2. flush the HStores. This has the effect of creating a new HStoreFile from the memcache flush and consequently, the HLog should be empty if the shutdown completes cleanly. Consequently, the only case in which we need to read and split the HLog occurs when a HRegionServer dies. Since this is only known to the master, the master can do the HLog splitting while it is looking for the regions that the downed region server was serving. > When a region server dies, its log must be distributed to all the new servers that have been assigned its regions > ----------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-1421 > URL: https://issues.apache.org/jira/browse/HADOOP-1421 > Project: Hadoop > Issue Type: New Feature > Components: contrib/hbase > Reporter: Jim Kellerman > Assignee: Jim Kellerman > > When a region server dies, the master reallocates all the regions it was serving to other region servers. In order for the regions to be recovered properly, the log from the old region server must be split up into chunks that contain only the commits for a single region. > Ideally, if a region server is assigned more than one of the old servers regions, the log for that server would contain all the commits for all the regions it has been assigned. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.