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

Allen Wittenauer commented on HDFS-11110:
-----------------------------------------

{code}
private static final long BLOCK_SIZE = (long) 
NativeIO.POSIX.getCacheManipulator().getOperatingSystemPageSize();
{code}

I'm pretty sure this completely falls apart if the native library isn't 
available.

> Hardcoded BLOCK SIZE value of 4096 is not appropriate for PowerPC
> -----------------------------------------------------------------
>
>                 Key: HDFS-11110
>                 URL: https://issues.apache.org/jira/browse/HDFS-11110
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: ramtin
>            Assignee: ramtin
>         Attachments: HDFS-11110.001.patch, HDFS-11110.02.patch
>
>
> Using NativeIO.POSIX.getCacheManipulator().getOperatingSystemPageSize() 
> function rather than hard coded block size



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to