hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mitic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9437) TestNativeIO#testRenameTo fails on Windows due to assumption that POSIX errno is embedded in NativeIOException
Date Wed, 27 Mar 2013 06:43:15 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13614981#comment-13614981
] 

Ivan Mitic commented on HADOOP-9437:
------------------------------------

Thanks Chris for the patch.

One comment on the patch. If I'm seeing things correctly, nativeio implementation for rename0
uses CRT#rename which returns errno code. On the other hand, Windows implementation for throw_ioe
assumes winerror code. Can you please check if the two are compatible? 

                
> TestNativeIO#testRenameTo fails on Windows due to assumption that POSIX errno is embedded
in NativeIOException
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9437
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9437
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-9437.1.patch
>
>
> HDFS-4428 added a detailed error message for failures to rename files by embedding the
POSIX errno in the {{NativeIOException}}.  On Windows, the mapping of errno is not performed,
so the errno enum value will not be present in the {{NativeIOException}}.

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