Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EA4F9331 for ; Thu, 9 Feb 2012 21:11:20 +0000 (UTC) Received: (qmail 27382 invoked by uid 500); 9 Feb 2012 21:11:19 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 27226 invoked by uid 500); 9 Feb 2012 21:11:18 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 27217 invoked by uid 99); 9 Feb 2012 21:11:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 21:11:18 +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; Thu, 09 Feb 2012 21:11:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 678781AA6B6 for ; Thu, 9 Feb 2012 21:10:57 +0000 (UTC) Date: Thu, 9 Feb 2012 21:10:57 +0000 (UTC) From: "Jitendra Nath Pandey (Resolved) (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <1021791322.21227.1328821857425.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2032875804.13807.1328690577687.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (HDFS-2915) HA: TestFailureOfSharedDir.testFailureOfSharedDir() has race condition 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-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jitendra Nath Pandey resolved HDFS-2915. ---------------------------------------- Resolution: Fixed Fix Version/s: HA branch (HDFS-1623) Hadoop Flags: Reviewed Committed. Thanks to Bikas! > HA: TestFailureOfSharedDir.testFailureOfSharedDir() has race condition > ---------------------------------------------------------------------- > > Key: HDFS-2915 > URL: https://issues.apache.org/jira/browse/HDFS-2915 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: name-node > Affects Versions: HA branch (HDFS-1623) > Reporter: Bikas Saha > Assignee: Bikas Saha > Priority: Minor > Fix For: HA branch (HDFS-1623) > > Attachments: HDFS-2915.HDFS-1623.patch, HDFS-2915.HDFS-1623.patch > > > The test deletes the shared edits dir to simulate a failure. Then it calls rollEditLogs() to trigger the deleted dir to be used and fail with an IOException. Unfortunately, deleting the shared dir can put the NN in safe mode due to lack of space. This causes a SafeModeException to be thrown when rollEditDirs() is called. This exception is caught as an IOException in the test but the associated assert in the catch block fails. > This always happens in the debugger because the delay in stepping through causes the safe mode change to happen before rollEditLogs() gets called. -- 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