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 5342910366 for ; Thu, 15 Aug 2013 23:19:50 +0000 (UTC) Received: (qmail 17740 invoked by uid 500); 15 Aug 2013 23:19:49 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 17669 invoked by uid 500); 15 Aug 2013 23:19:48 -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 17648 invoked by uid 99); 15 Aug 2013 23:19:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Aug 2013 23:19:48 +0000 Date: Thu, 15 Aug 2013 23:19:48 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5100) TestNamenodeRetryCache fails on Windows due to incorrect cleanup 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-5100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13741651#comment-13741651 ] Chris Nauroth commented on HDFS-5100: ------------------------------------- Thanks for trying it, Chuan. That makes sense. I'm still tracking down the Jenkins issue but will try to get this patch committed for you soon. > TestNamenodeRetryCache fails on Windows due to incorrect cleanup > ---------------------------------------------------------------- > > Key: HDFS-5100 > URL: https://issues.apache.org/jira/browse/HDFS-5100 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 3.0.0, 2.1.1-beta > Reporter: Chuan Liu > Assignee: Chuan Liu > Priority: Minor > Attachments: HDFS-5100-trunk.patch, HDFS-5100-trunk.patch > > > The test case fails on Windows with the following exceptions. > {noformat} > java.io.IOException: Could not fully delete C:\hdc\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\name1 > at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:759) > at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:644) > at org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:334) > at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316) > at org.apache.hadoop.hdfs.server.namenode.ha.TestInitializeSharedEdits.setupCluster(TestInitializeSharedEdits.java:68) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ... > {noformat} > The root cause is that the {{cleanup()}} only try to delete root directory instead of shutting down the MiniDFSCluster. Every test case in this unit test will create a new MiniDFSCluster during {{setup()}} step. Without shutting down the previous cluster, the new cluster creation will fail with the above exception due to blocking file handling on Windows. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira