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 3B633C9E8 for ; Sat, 19 May 2012 01:22:31 +0000 (UTC) Received: (qmail 88896 invoked by uid 500); 19 May 2012 01:22:31 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 88858 invoked by uid 500); 19 May 2012 01:22:31 -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 88846 invoked by uid 99); 19 May 2012 01:22:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2012 01:22:31 +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, 19 May 2012 01:22:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A64B3CC53 for ; Sat, 19 May 2012 01:22:07 +0000 (UTC) Date: Sat, 19 May 2012 01:22:07 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <64996872.17709.1337390527682.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2086549363.26065.1336115568729.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-3368) Missing blocks due to bad DataNodes comming up and down. 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-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279390#comment-13279390 ] Tsz Wo (Nicholas), SZE commented on HDFS-3368: ---------------------------------------------- I just found that the enableDebugLogging constant is outdated. It still refers to "FSNamesystem logger" but the actually logger is BlockPlacementPolicy.LOG. Could you also update it? Below is my suggested change. {code} public class BlockPlacementPolicyDefault extends BlockPlacementPolicy { + private static final String enableDebugLogging + = "For more information, please enable DEBUG log level on " + + ((Log4JLogger)LOG).getLogger().getName(); + private boolean considerLoad; private boolean preferLocalNode = true; private NetworkTopology clusterMap; private FSClusterStats stats; - static final String enableDebugLogging = "For more information, please enable" - + " DEBUG level logging on the " - + "org.apache.hadoop.hdfs.server.namenode.FSNamesystem logger."; {code} > Missing blocks due to bad DataNodes comming up and down. > -------------------------------------------------------- > > Key: HDFS-3368 > URL: https://issues.apache.org/jira/browse/HDFS-3368 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.22.0, 1.0.0, 2.0.0, 3.0.0 > Reporter: Konstantin Shvachko > Assignee: Konstantin Shvachko > Attachments: blockDeletePolicy-0.22.patch, blockDeletePolicy-trunk.patch, blockDeletePolicy.patch > > > All replicas of a block can be removed if bad DataNodes come up and down during cluster restart resulting in data loss. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira