You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2014/11/08 22:35:34 UTC

[jira] [Created] (HADOOP-11285) FileUtil operations don't check for native lib loaded on windows; fails with NPE

Steve Loughran created HADOOP-11285:
---------------------------------------

             Summary: FileUtil operations don't check for native lib loaded on windows; fails with NPE
                 Key: HADOOP-11285
                 URL: https://issues.apache.org/jira/browse/HADOOP-11285
             Project: Hadoop Common
          Issue Type: Bug
          Components: util
    Affects Versions: 2.6.0
         Environment: windows
            Reporter: Steve Loughran


On windows {{FileUtil.canRead()}} and the like requires the native APIs (at least until a migration to java 7 APIs). The methods do not, however, call  {{NativeIO.isAvailable()}} to verify the native libs are there. As a result, the calls fail with less useful stack traces. 

if Java 7 allows all of these calls to be replaced, then this is a non-issue

If not, I propose some {{verifyAvailableOnWindows()}} method which triggers an exception; one which includes some hints about the problem —perhaps a URL to a wiki page on the topic



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