hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-10495) TestFileUtil fails on Windows due to bad permission assertions.
Date Mon, 14 Apr 2014 04:17:15 GMT

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

Chris Nauroth updated HADOOP-10495:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.0
                   3.0.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Thank you, Arpit.  I committed this to trunk and branch-2.

> TestFileUtil fails on Windows due to bad permission assertions.
> ---------------------------------------------------------------
>
>                 Key: HADOOP-10495
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10495
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Trivial
>             Fix For: 3.0.0, 2.5.0
>
>         Attachments: HADOOP-10495.1.patch
>
>
> {{TestFileUtil}} contains some assertions that check {{java.io.File#canRead}}.  These
assertions fail on Windows.  The {{java.io.File}} methods for checking permissions are known
to be buggy in JDK 6.  We can replace these calls with our own custom {{FileUtil#canRead}},
which is correct on all platforms.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message