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-8975) TestFileContextResolveAfs fails on Windows
Date Tue, 30 Oct 2012 16:32:13 GMT

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

Chris Nauroth updated HADOOP-8975:

    Attachment: HADOOP-8975-branch-trunk-win.patch

The attached patch fixes the test.  There were 2 problems.

TestFileContextResolveAfs had some Path manipulation logic that incorrectly mingled forward
slashes and back slashes.  I fixed that by switching from String concatenation to using the
Path APIs that handle it correctly.  

After fixing that, I discovered that RawLocalFs.createSymlink mishandled the Path on Windows
if it contained scheme or authority.  I also switched this code to using the Path APIs that
handle the conversion correctly.

> TestFileContextResolveAfs fails on Windows
> ------------------------------------------
>                 Key: HADOOP-8975
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8975
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-8975-branch-trunk-win.patch
> This appears to be a Windows-specific path parsing issues.

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

View raw message