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 5686B61F2 for ; Fri, 3 Jun 2011 17:31:34 +0000 (UTC) Received: (qmail 12688 invoked by uid 500); 3 Jun 2011 17:31:34 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 12653 invoked by uid 500); 3 Jun 2011 17:31:34 -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 12645 invoked by uid 99); 3 Jun 2011 17:31:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 17:31:34 +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; Fri, 03 Jun 2011 17:31:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 10130F3136 for ; Fri, 3 Jun 2011 17:30:51 +0000 (UTC) Date: Fri, 3 Jun 2011 17:30:51 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1443047809.66432.1307122251062.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2086595669.53727.1306773107650.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2011) Removal and restoration of storage directories on checkpointing failure doesn't work properly 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-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043892#comment-13043892 ] Todd Lipcon commented on HDFS-2011: ----------------------------------- A few style nits on HDFS-2011.4.patch: - please try to keep lines under 80 columns wide where possible. If it spills over to 85 or 90 here and there, not a huge deal, but 100+ columns should be avoided - why catch SecurityException? that looks very much out of place, and given it's an unchecked exception, you don't need to catch it at all - the assertTrue around mkdir() in testSetCheckpoingTimeInStorageHandlesIOException should probably check "exists() || mkdir()". Or call deleteFully on it at the top of the test - you construct that same file path several times in the same test. Please just make it once as a constant - in the error messages, better to do something like: "Couldn't remove directory " + TEST_STORAGE_DIR.getAbsoluteFile(). That way the developer can easily track down the full path - alignment is off in NNStorage.java change - the comment referring to "edit and edits.new" in ELFOS is out of place - that class shouldn't know about details of how it's used. Instead it should read something like "// if already closed, just return" - TestCheckpoint inherits from TestCase, so you don't need to import org.junit.Assert > Removal and restoration of storage directories on checkpointing failure doesn't work properly > --------------------------------------------------------------------------------------------- > > Key: HDFS-2011 > URL: https://issues.apache.org/jira/browse/HDFS-2011 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.23.0 > Reporter: Ravi Prakash > Assignee: Ravi Prakash > Attachments: HDFS-2011.3.patch, HDFS-2011.4.patch, HDFS-2011.patch, HDFS-2011.patch, HDFS-2011.patch > > > Removal and restoration of storage directories on checkpointing failure doesn't work properly. Sometimes it throws a NullPointerException and sometimes it doesn't take off a failed storage directory -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira