Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 16347 invoked from network); 26 Oct 2010 23:56:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 23:56:50 -0000 Received: (qmail 12492 invoked by uid 500); 26 Oct 2010 23:56:50 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 12462 invoked by uid 500); 26 Oct 2010 23:56:50 -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 12454 invoked by uid 99); 26 Oct 2010 23:56:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 23:56:50 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=10.0 tests=ALL_TRUSTED,FS_REPLICA 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, 26 Oct 2010 23:56:48 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9QNuQBx028227 for ; Tue, 26 Oct 2010 23:56:27 GMT Message-ID: <13324385.91161288137386804.JavaMail.jira@thor> Date: Tue, 26 Oct 2010 19:56:26 -0400 (EDT) From: "T Meyarivan (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1480) All replicas for a block end up in same rack In-Reply-To: <5574784.91051288137021012.JavaMail.jira@thor> 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-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925206#action_12925206 ] T Meyarivan commented on HDFS-1480: ----------------------------------- [1] verified via "dfsadmin -report" that rack id etc is being computed correctly for all datanodes [2] number of such replicas doesn't seem to be reducing [3] balancer is/was running - [A] isGoodTarget() is broken for repl=2 ? [B] 'hadoop fsck ...' uses slightly different logic to determine whether a block is correctly replicated ? -- > All replicas for a block end up in same rack > -------------------------------------------- > > Key: HDFS-1480 > URL: https://issues.apache.org/jira/browse/HDFS-1480 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: T Meyarivan > Priority: Minor > > It appears that all replicas of a block can end up in the same rack. The likelihood of such replicas seems to be directly related to decommissioning of nodes. > Post rolling OS upgrade (decommission 3-10% of nodes, re-install etc, add them back) of a running cluster, all replicas of about 0.16% of blocks ended up in the same rack. > Hadoop Namenode UI etc doesn't seem to know about such incorrectly replicated blocks. "hadoop fsck .." does report that the blocks must be replicated on additional racks. > Looking at ReplicationTargetChooser.java, following seem suspect: > snippet-01: > """ > int maxNodesPerRack = > (totalNumOfReplicas-1)/clusterMap.getNumOfRacks()+2; > """ > snippet-02: > """ > if (counter>maxTargetPerLoc) { > logr.debug("Node "+NodeBase.getPath(node)+ > " is not chosen because the rack has too many chosen nodes"); > return false; > } > """ > snippet-03: > """ > default: > chooseRandom(numOfReplicas, NodeBase.ROOT, excludedNodes, > blocksize, maxNodesPerRack, results); > } > """ > -- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.