You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2014/03/04 20:11:24 UTC

[jira] [Commented] (HDFS-6052) TestBlockReaderLocal fails if native code is not loaded or platform is Windows.

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

Chris Nauroth commented on HDFS-6052:
-------------------------------------

See below for sample stack trace.  I haven't done a full run of all tests without native code, so I wonder if there are other issues lurking.

{code}
testBlockReaderLocalImmediateClose(org.apache.hadoop.hdfs.TestBlockReaderLocal)  Time elapsed: 2.981 sec  <<< ERROR!
java.lang.UnsupportedOperationException: NativeIO is not available.
	at org.apache.hadoop.hdfs.ShortCircuitShm.<init>(ShortCircuitShm.java:461)
	at org.apache.hadoop.hdfs.TestBlockReaderLocal.runBlockReaderLocalTest(TestBlockReaderLocal.java:181)
	at org.apache.hadoop.hdfs.TestBlockReaderLocal.testBlockReaderLocalImmediateClose(TestBlockReaderLocal.java:218)
{code}


> TestBlockReaderLocal fails if native code is not loaded or platform is Windows.
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-6052
>                 URL: https://issues.apache.org/jira/browse/HDFS-6052
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client, test
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Chris Nauroth
>
> Since the HDFS-5950 patch, {{TestBlockReaderLocal}} directly instantiates {{ShortCircuitShm}}.  This fails if running on a platform where the native code is not loaded.



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