Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 46720 invoked from network); 5 May 2008 22:18:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2008 22:18:21 -0000 Received: (qmail 5588 invoked by uid 500); 5 May 2008 22:18:20 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 5557 invoked by uid 500); 5 May 2008 22:18:20 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 5546 invoked by uid 99); 5 May 2008 22:18:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 15:18:20 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 22:17:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A22F8234C106 for ; Mon, 5 May 2008 15:17:55 -0700 (PDT) Message-ID: <550420639.1210025875663.JavaMail.jira@brutus> Date: Mon, 5 May 2008 15:17:55 -0700 (PDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3310) Lease recovery for append In-Reply-To: <70962561.1209080757123.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-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-3310: ------------------------------------------- Assignee: Tsz Wo (Nicholas), SZE The lease recovery algorithm is: * 1) Namenode retrieves lease information * 2) For each file f in the lease, consider the last block b of f * 2.1) Get the datanodes which containing b * 2.2) Assign one of the datanodes as the primary datanode p * 2.3) p checks with all the datanodes, * see whether block synchronization is required. * 2.4) If synchronization is required * 2.4.1) obtain a new generation stamp form the namenode * 2.4.2) compute the minimum block length (this is the synchronized length) * 2.4.3) update all datanodess (each datanode update its block file) * 2.4.4) acknowledge the namenode. * 2.5) Namenode commit the new generation stamp * 2.6) Namenode removes f (and update INode) from the lease * 3) Namenode removes the lease once all files have been removed. > Lease recovery for append > ------------------------- > > Key: HADOOP-3310 > URL: https://issues.apache.org/jira/browse/HADOOP-3310 > Project: Hadoop Core > Issue Type: New Feature > Components: dfs > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > > In order to support file append, a GenerationStamp is associated with each block. Lease recovery will be performed when there is a possibility that the replicas of a block in a lease may have different GenerationStamp values. > For more details, see the documentation in HADOOP-1700. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.