From hdfs-issues-return-188-apmail-hadoop-hdfs-issues-archive=hadoop.apache.org@hadoop.apache.org Thu Jul 09 22:48:30 2009 Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 98732 invoked from network); 9 Jul 2009 22:48:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 22:48:29 -0000 Received: (qmail 5995 invoked by uid 500); 9 Jul 2009 22:48:39 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 5959 invoked by uid 500); 9 Jul 2009 22:48:39 -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 5949 invoked by uid 99); 9 Jul 2009 22:48:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 22:48:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 22:48:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6A3E29A0011 for ; Thu, 9 Jul 2009 15:48:14 -0700 (PDT) Message-ID: <1816814740.1247179694799.JavaMail.jira@brutus> Date: Thu, 9 Jul 2009 15:48:14 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-462) Unit tests not working under Windows In-Reply-To: <1062044941.1246902675457.JavaMail.jira@brutus> 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-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729438#action_12729438 ] Konstantin Shvachko commented on HDFS-462: ------------------------------------------ Nicholas your case falls under HDFS-456. See error messages before that complaining the path is not a uri. Checked the patch on windows. TestDistributedUpgrade passes with, fails without it. +1 > Unit tests not working under Windows > ------------------------------------ > > Key: HDFS-462 > URL: https://issues.apache.org/jira/browse/HDFS-462 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node, test > Affects Versions: 0.21.0 > Environment: Windows > Reporter: Luca Telloli > Assignee: Jakob Homan > Fix For: 0.21.0 > > Attachments: HDFS-462.patch, TEST-org.apache.hadoop.hdfs.TestHdfs.txt > > > Unit tests are failing on windows due to a problem with rename. > The failing code is around line 520 in FSImage.java: > {noformat} > assert curDir.exists() : "Current directory must exist."; > assert !prevDir.exists() : "prvious directory must not exist."; > assert !tmpDir.exists() : "prvious.tmp directory must not exist."; > // rename current to tmp > rename(curDir, tmpDir); > // save new image > if (!curDir.mkdir()) > throw new IOException("Cannot create directory " + curDir); > {noformat} > and seems related to some open file or directory -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.