Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 89214 invoked from network); 4 Aug 2009 18:18:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Aug 2009 18:18:34 -0000 Received: (qmail 7813 invoked by uid 500); 4 Aug 2009 18:18:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 7783 invoked by uid 500); 4 Aug 2009 18:18:39 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 7773 invoked by uid 99); 4 Aug 2009 18:18:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2009 18:18:39 +0000 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA 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; Tue, 04 Aug 2009 18:18:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D9552234C046 for ; Tue, 4 Aug 2009 11:18:14 -0700 (PDT) Message-ID: <974106139.1249409894889.JavaMail.jira@brutus> Date: Tue, 4 Aug 2009 11:18:14 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-509) Redesisn DataNode volumeMap to include all types of Replicas In-Reply-To: <895449098.1248800834918.JavaMail.jira@brutus> 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/HDFS-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hairong Kuang updated HDFS-509: ------------------------------- Attachment: replicas.patch Here is an initial patch for review. This patch 1. defines all different types of replicas: temporary, finalized, replica being written, replica waiting to be recovered, replica under recovery. 2. redefines volumeMap to include all types of replicas. removes ongoingCreates map, renames volumeMap to be replicasMap, and redefines the key to replicasMap to be block's ide; 3. changes FSDataSet to use the new map and replicas APIs. > Redesisn DataNode volumeMap to include all types of Replicas > ------------------------------------------------------------ > > Key: HDFS-509 > URL: https://issues.apache.org/jira/browse/HDFS-509 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: data-node > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.21.0 > > Attachments: replicas.patch > > > With the new append design, replicas at a DataNode could be in one of the five states: Finalized, ReplicaBeingWritten, ReplicaWaitingToBeRecovered, ReplicaUnderRecovery, and Temporay. This jira is to > 1. define the in-memory representation of these five types of replicas > 2. redefine volumeMap to include all five types of replicas and remove ongoingCreates map. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.