hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4593) TestSaveNamespace fails on Windows
Date Tue, 12 Mar 2013 21:03:13 GMT

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

Arpit Agarwal updated HDFS-4593:
--------------------------------

    Attachment: HDFS-4593.1.patch

Couple of fixes to get this test passing on Windows:

- File.setExecutable and File.setReadable don't work on Windows, so we use the local filesystem's
setPermission routine which has been fixed to work on Windows.

- The Windows "List contents" permission is enforced differently from the POSIX directory
"Execute" permission. Revoking the permission from the parent directory does not prevent child
directories from being modified. Hence the test has been modified to manipulate permissions
on the child directory (name1\current).
                
> TestSaveNamespace fails on Windows
> ----------------------------------
>
>                 Key: HDFS-4593
>                 URL: https://issues.apache.org/jira/browse/HDFS-4593
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>         Environment: Windows
>            Reporter: Arpit Agarwal
>             Fix For: 3.0.0
>
>         Attachments: HDFS-4593.1.patch
>
>
> Exception details:
> {code}
> testReinsertnamedirsInSavenamespace(org.apache.hadoop.hdfs.server.namenode.TestSaveNamespace)
 Time elapsed: 15474 sec  <<< FAILURE!
> java.lang.AssertionError: Savenamespace should have marked one directory as bad.  But
found 0 bad directories.
>         at org.junit.Assert.fail(Assert.java:91)
>         at org.junit.Assert.assertTrue(Assert.java:43)
>         at org.apache.hadoop.hdfs.server.namenode.TestSaveNamespace.testReinsertnamedirsInSavenamespace(TestSaveNamespace.java:256)
> {code}

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

Mime
View raw message