Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA9A16579 for ; Sat, 14 May 2011 03:26:31 +0000 (UTC) Received: (qmail 61151 invoked by uid 500); 14 May 2011 03:26:29 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 61012 invoked by uid 500); 14 May 2011 03:26:28 -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 61002 invoked by uid 99); 14 May 2011 03:26:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2011 03:26:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 May 2011 03:26:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E67A388950 for ; Sat, 14 May 2011 03:25:47 +0000 (UTC) Date: Sat, 14 May 2011 03:25:47 +0000 (UTC) From: "Bharath Mundlapudi (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1237556104.12326.1305343547940.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <609251165.12298.1305342467424.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (HDFS-1940) Datanode can have more than one copy of same block when a failed disk is coming back in datanode 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-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bharath Mundlapudi reassigned HDFS-1940: ---------------------------------------- Assignee: Bharath Mundlapudi > Datanode can have more than one copy of same block when a failed disk is coming back in datanode > ------------------------------------------------------------------------------------------------ > > Key: HDFS-1940 > URL: https://issues.apache.org/jira/browse/HDFS-1940 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node > Affects Versions: 0.20.204.0 > Reporter: Rajit > Assignee: Bharath Mundlapudi > > There is a situation where one datanode can have more than one copy of same block due to a disk fails and comes back after sometime in a datanode. And these duplicate blocks are not getting deleted even after datanode and namenode restart. > This situation can only happen in a corner case , when due to disk failure, the data block is replicated to other disk of the same datanode. > To simulate this scenario I copied a datablock and the associated .meta file from one disk to another disk of same datanode, so the datanode is having 2 copy of same replica. Now I restarted datanode and namenode. Still the extra data block and meta file is not deleted from the datanode > [hdfs@gsbl90192 rajsaha]$ ls -l `find /grid/{0,1,2,3}/hadoop/var/hdfs/data/current -name blk_*` > -rw-r--r-- 1 hdfs users 7814 May 13 21:05 /grid/1/hadoop/var/hdfs/data/current/blk_1727421609840461376 > -rw-r--r-- 1 hdfs users 71 May 13 21:05 /grid/1/hadoop/var/hdfs/data/current/blk_1727421609840461376_579992.meta > -rw-r--r-- 1 hdfs users 7814 May 13 21:14 /grid/3/hadoop/var/hdfs/data/current/blk_1727421609840461376 > -rw-r--r-- 1 hdfs users 71 May 13 21:14 /grid/3/hadoop/var/hdfs/data/current/blk_1727421609840461376_579992.meta -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira