Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 72768 invoked from network); 24 Aug 2010 07:38:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 07:38:40 -0000 Received: (qmail 47413 invoked by uid 500); 24 Aug 2010 07:38:40 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 47322 invoked by uid 500); 24 Aug 2010 07:38:38 -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 47312 invoked by uid 99); 24 Aug 2010 07:38:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 07:38:37 +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, 24 Aug 2010 07:38:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7O7cGkg017266 for ; Tue, 24 Aug 2010 07:38:16 GMT Message-ID: <31044052.525881282635496702.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 03:38:16 -0400 (EDT) From: "dhruba borthakur (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1351) Make it possible for BlockPlacementPolicy to return null In-Reply-To: <4239133.525791282634716856.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901758#action_12901758 ] dhruba borthakur commented on HDFS-1351: ---------------------------------------- In particular, the following interface in BlockPlacementPolicy.java could return null: {code} abstract public DatanodeDescriptor chooseReplicaToDelete(FSInodeInfo srcInode, Block block, short replicationFactor, Collection existingReplicas, Collection moreExistingReplicas); {code} > Make it possible for BlockPlacementPolicy to return null > -------------------------------------------------------- > > Key: HDFS-1351 > URL: https://issues.apache.org/jira/browse/HDFS-1351 > Project: Hadoop HDFS > Issue Type: Test > Components: name-node > Affects Versions: 0.22.0 > Reporter: Dmytro Molkov > Assignee: Dmytro Molkov > > The idea is to modify FSNamesystem.chooseExcessReplicates code, so it can accept a null return from chooseReplicaToDelete which will indicate that NameNode should not be deleting extra replicas. > One possible usecase - if there are nodes being added to the cluster that might have corrupt replicas on them you do not want to delete other replicas until the block scanner finished scanning every block on the datanode. > This will require additional work on the implementation of the BlockPlacementPolicy, but with this JIRA I just wanted to create a basis for future improvements. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.