hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10569) A bug causes OutOfIndex error in BlockListAsLongs
Date Fri, 24 Jun 2016 06:24:16 GMT

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

Weiwei Yang commented on HDFS-10569:

It looks like the 2nd test in {{TestBlockListAsLongs#testDatanodeDetect}} was still using
new-style BP, that's why the code was not called in UT. I modified that part in 002 patch.
Without the patch, it will throw OutOfIndex error, the patch fixes this issue when DN sends
old-style BR.

Please take a look at the new patch and the test case. Thanks a lot.

> A bug causes OutOfIndex error in BlockListAsLongs
> -------------------------------------------------
>                 Key: HDFS-10569
>                 URL: https://issues.apache.org/jira/browse/HDFS-10569
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>            Priority: Minor
>         Attachments: HDFS-10569.001.patch, HDFS-10569.002.patch
> An obvious bug in LongsDecoder.getBlockListAsLongs(), the size of var *longs* is +2 to
the size of *values*, but the for-loop accesses *values* using *longs* index. This will cause

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message