hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-462) Unit tests not working under Windows
Date Wed, 08 Jul 2009 00:53:14 GMT

     [ https://issues.apache.org/jira/browse/HDFS-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HDFS-462:
----------------------------------------

    Attachment: TEST-org.apache.hadoop.hdfs.TestHdfs.txt

MiniDFSCluster also does not work in Windows.
{code}
//The following test failed in Windows.  
//See also the attached log TEST-org.apache.hadoop.hdfs.TestHdfs.txt
public class TestHdfs extends junit.framework.TestCase {
  public void testHdfs() throws IOException {
    new MiniDFSCluster(new Configuration(), 1, true, null);
  }
}
{code}
{noformat}
Testcase: testHdfs took 1.219 sec
	Caused an ERROR
All specified directories are not accessible or do not exist.
java.io.IOException: All specified directories are not accessible or do not exist.
	at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:370)
	at org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.java:99)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.java:255)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:236)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:254)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:299)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:405)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:399)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1159)
	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:276)
	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:120)
	at org.apache.hadoop.hdfs.TestHdfs.testHdfs(TestHdfs.java:25)
{noformat}

> 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: 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.


Mime
View raw message