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

Walter Su commented on HDFS-8033:
---------------------------------

upload ByteBufferStrategy_support_len.patch. It fixes the issue.
{code}
    // Read from one blockReader up to cell boundary
    int cellRet = readBuffer(blockReaders[idxInStripe],
        currentNodes[idxInStripe], strategy, off + result,
        realLenInCell);
{code}
What does The patch do: When bytebuffer.capacity() > realLenInCell, It only 
reads realLenInCell.


> Erasure coding: stateful (non-positional) read from files in striped layout
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-8033
>                 URL: https://issues.apache.org/jira/browse/HDFS-8033
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: HDFS-7285
>            Reporter: Zhe Zhang
>            Assignee: Zhe Zhang
>         Attachments: ByteBufferStrategy_support_len.patch, 
> HDFS-8033.000.patch, HDFS-8033.001.patch, HDFS-8033.002.patch, 
> HDFS-8033.003.patch, hdfs8033-HDFS-7285.04.patch
>
>




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

Reply via email to