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-8957) FileContext.getFileContext causes multiple test failures on Windows due to InvocationTargetException
Date Fri, 02 Nov 2012 07:18:13 GMT

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

Chris Nauroth updated HADOOP-8957:
----------------------------------

    Attachment: HADOOP-8957.patch

Thank you, Suresh.  Here is an updated patch with all @see docs removed and the phrasing of
the comment in Hdfs.isValidName changed to say "prohibit".

The name validation logic is removed from ViewFileSystem, because ViewFileSystem delegates
to other file systems, and it doesn't know the rules for file names in each of those file
systems.  For example, the old logic would have rejected ':'.  The ':' is invalid for a ViewFileSystem
wrapping a DistributedFileSystem, but it is valid for a ViewFileSystem wrapping a LocalFileSystem
on Windows, due to the drive specification.  This patch removes the check from ViewFileSystem
so that the specific file systems it delegates to can execute their own checks.

Specifically, TestFSMainOperationsLocalFileSystem fails on Windows unless we remove this check.

                
> FileContext.getFileContext causes multiple test failures on Windows due to InvocationTargetException
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8957
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8957
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 3.0.0, trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-8957.patch, HADOOP-8957.patch
>
>
> This appears to be a problem with parsing a Windows-specific path, ultimately throwing
InvocationTargetException from AbstractFileSystem.newInstance.

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