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 131B496A1 for ; Sun, 19 Feb 2012 22:37:02 +0000 (UTC) Received: (qmail 79027 invoked by uid 500); 19 Feb 2012 22:37:01 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 78995 invoked by uid 500); 19 Feb 2012 22:37: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 78986 invoked by uid 99); 19 Feb 2012 22:37:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2012 22:37: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; Sun, 19 Feb 2012 22:36:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 19DBA1C0BEC for ; Sun, 19 Feb 2012 22:36:35 +0000 (UTC) Date: Sun, 19 Feb 2012 22:36:35 +0000 (UTC) From: "Aaron T. Myers (Updated) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1143632015.1071.1329690998362.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1068085521.911.1329682954600.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2974) HA: MiniDFSCluster does not delete standby NN name dirs during format 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-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron T. Myers updated HDFS-2974: --------------------------------- Attachment: HDFS-2974-HDFS-1623.patch Whoops! Looks like I uploaded the wrong patch last time. Here's the right one. I also discovered that this fix caused TestCheckpoint to fail, because of a bug in TestCheckpoint. In one of the TestCheckpoint cases, we restart a mini cluster to assert that having a locked storage directory will cause the NN to fail to start. However, the test case errantly had the NN format the name dir on start. The only reason this test was passing was because of the bug in MiniDFSCluster. The attached patch fixes this bug as well. > HA: MiniDFSCluster does not delete standby NN name dirs during format > --------------------------------------------------------------------- > > Key: HDFS-2974 > URL: https://issues.apache.org/jira/browse/HDFS-2974 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ha, test > Affects Versions: HA branch (HDFS-1623) > Reporter: Aaron T. Myers > Assignee: Aaron T. Myers > Attachments: HDFS-2952-HDFS-1623.patch, HDFS-2974-HDFS-1623.patch > > > When the MiniDFSCluster is formtting an HA cluster, it formats the first NN, and then copies the contents of that directory to the second NNs name dirs. However, the second NNs name dirs are not emptied first, and thus a previous test's state may interfere with the test. -- 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