hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sam liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7585) TestEnhancedByteBufferAccess hard code the block size
Date Mon, 12 Jan 2015 09:20:34 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

sam liu updated HDFS-7585:
--------------------------
    Attachment: HDFS-7585.002.patch

According to Colin's suggestion, replaced 
{code}
private static final int BLOCK_SIZE = 4096;
{code} 
with 
{code}
private static final int BLOCK_SIZE = NativeIO.POSIX.getCacheManipulator().getOperatingSystemPageSize();
{code}
Furthermore, made some other regarding modifications:
- Replaced all block size hard codes. For example, replace '4096' with 'BLOCK_SIZE'
- Updated some other codes accordingly

> TestEnhancedByteBufferAccess hard code the block size
> -----------------------------------------------------
>
>                 Key: HDFS-7585
>                 URL: https://issues.apache.org/jira/browse/HDFS-7585
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: test
>    Affects Versions: 2.6.0
>            Reporter: sam liu
>            Assignee: sam liu
>         Attachments: HDFS-7585.001.patch, HDFS-7585.002.patch
>
>
> The test TestEnhancedByteBufferAccess hard code the block size, and it fails with exceptions
on power linux.



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

Mime
View raw message