Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 27859 invoked from network); 4 Apr 2011 23:51:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 23:51:46 -0000 Received: (qmail 86887 invoked by uid 500); 4 Apr 2011 23:51:46 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 86849 invoked by uid 500); 4 Apr 2011 23:51:46 -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 86840 invoked by uid 99); 4 Apr 2011 23:51:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 23:51:46 +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; Mon, 04 Apr 2011 23:51:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 331EF92397 for ; Mon, 4 Apr 2011 23:51:06 +0000 (UTC) Date: Mon, 4 Apr 2011 23:51:06 +0000 (UTC) From: "Tanping Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <445810151.33771.1301961066206.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1371) One bad node can incorrectly flag many files as corrupt 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-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015686#comment-13015686 ] Tanping Wang commented on HDFS-1371: ------------------------------------ I am working on this bug. I will take Konstantin's last comment as my approach to fix this bug: 1) Add a new validate block DatanodeCommand for data node. 2) Namenode sends the validation request to data node via heartbeat. {code} public DatanodeCommand[] sendHeartbeat(...) {code} 3) data node receives the validate block command, process it and ask block scanner to validate the block. {code} private boolean processCommand(DatanodeCommand cmd) switch(cmd.getAction()) { case DatanodeProtocol.DNA_VALIDATE: if (blockScanner != null) { blockScanner.verifyBlock(toVerify); } } {code} 4) If the block is corrupted, repair the block. If the block is good, tell name node to mark the block as good. Any comments? > One bad node can incorrectly flag many files as corrupt > ------------------------------------------------------- > > Key: HDFS-1371 > URL: https://issues.apache.org/jira/browse/HDFS-1371 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs client, name-node > Affects Versions: 0.20.1 > Environment: yahoo internal version > [knoguchi@gwgd4003 ~]$ hadoop version > Hadoop 0.20.104.3.1007030707 > Reporter: Koji Noguchi > > On our cluster, 12 files were reported as corrupt by fsck even though the replicas on the datanodes were healthy. > Turns out that all the replicas (12 files x 3 replicas per file) were reported corrupt from one node. > Surprisingly, these files were still readable/accessible from dfsclient (-get/-cat) without any problems. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira