hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12438) Reset RawLocalFileSystem.useDeprecatedFileStatus in TestLocalFileSystem
Date Thu, 24 Sep 2015 03:06:04 GMT

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

Hudson commented on HADOOP-12438:
---------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #1171 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/1171/])
HADOOP-12438. Reset RawLocalFileSystem.useDeprecatedFileStatus in TestLocalFileSystem. Contributed
by Chris Nauroth. (wheat9: rev 0ef7ff47d5d031783ce61e93d36dc30703b5b28b)
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFileSystem.java


> Reset RawLocalFileSystem.useDeprecatedFileStatus in TestLocalFileSystem
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-12438
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12438
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Trivial
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-12438.001.patch
>
>
> A test written as part of HDFS-8767 uses Mockito's {{Whitebox#setInternalState}} to force
the static {{RawLocalFileSystem#useDeprecatedFileStatus}} to {{false}}.  On systems that don't
implement a {{stat}} call (notably Windows), this leaves the class in a state where it will
attempt the {{stat}} call anyway during subsequent tests.  This ultimately causes tests to
fail with {{UnsupportedOperationException}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message