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 B2A1F9B5D for ; Tue, 24 Jan 2012 00:38:02 +0000 (UTC) Received: (qmail 66297 invoked by uid 500); 24 Jan 2012 00:38:02 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 66256 invoked by uid 500); 24 Jan 2012 00:38:01 -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 66248 invoked by uid 99); 24 Jan 2012 00:38:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 00:38:01 +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; Tue, 24 Jan 2012 00:38:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC71815F2B6 for ; Tue, 24 Jan 2012 00:37:40 +0000 (UTC) Date: Tue, 24 Jan 2012 00:37:40 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1669259909.69442.1327365460773.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <17976229.66161288039941057.JavaMail.jira@thor> Subject: [jira] [Commented] (HDFS-1476) listCorruptFileBlocks should be functional while the name node is still in safe mode 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-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191694#comment-13191694 ] Hudson commented on HDFS-1476: ------------------------------ Integrated in Hadoop-Mapreduce-trunk-Commit #1592 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1592/]) HDFS-2826. Add test case for HDFS-1476 (safemode can initialize replication queues before exiting) (todd) todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1235067 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestSafeMode.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java > listCorruptFileBlocks should be functional while the name node is still in safe mode > ------------------------------------------------------------------------------------ > > Key: HDFS-1476 > URL: https://issues.apache.org/jira/browse/HDFS-1476 > Project: Hadoop HDFS > Issue Type: Improvement > Components: name-node > Affects Versions: 0.23.0 > Reporter: Patrick Kling > Assignee: Patrick Kling > Fix For: 0.23.0 > > Attachments: HDFS-1476.2.patch, HDFS-1476.3.patch, HDFS-1476.4.patch, HDFS-1476.5.patch, HDFS-1476.patch > > > This would allow us to detect whether missing blocks can be fixed using Raid and if that is the case exit safe mode earlier. > One way to make listCorruptFileBlocks available before the name node has exited from safe mode would be to perform a scan of the blocks map on each call to listCorruptFileBlocks to determine if there are any blocks with no replicas. This scan could be parallelized by dividing the space of block IDs into multiple intervals than can be scanned independently. -- 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