You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2012/06/28 03:32:44 UTC

[jira] [Commented] (HADOOP-7824) Native IO uses wrong constants almost everywhere

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

Todd Lipcon commented on HADOOP-7824:
-------------------------------------

Instead of generating code at compile time like this, can we do better by creating enums on the Java side, and then translating from the Java enum to the C constants in the JNI layer? See how Errno.java translates to its C counterpart.
                
> Native IO uses wrong constants almost everywhere
> ------------------------------------------------
>
>                 Key: HADOOP-7824
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7824
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: native
>    Affects Versions: 0.20.204.0, 0.20.205.0, 1.0.3, 0.23.0
>         Environment: Mac OS X, Linux, Solaris, ... 
>            Reporter: Dmytro Shteflyuk
>            Assignee: Todd Lipcon
>              Labels: hadoop
>         Attachments: HADOOP-7824.patch, HADOOP-7824.patch
>
>
> Constants like O_CREAT, O_EXCL, etc. have different values on OS X and many other operating systems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira