Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 00512200B32 for ; Thu, 23 Jun 2016 15:42:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F2C8A160A68; Thu, 23 Jun 2016 13:42:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6C9ED160A35 for ; Thu, 23 Jun 2016 15:42:17 +0200 (CEST) Received: (qmail 87838 invoked by uid 500); 23 Jun 2016 13:42:16 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 87811 invoked by uid 99); 23 Jun 2016 13:42:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 13:42:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3C8D62C1F5C for ; Thu, 23 Jun 2016 13:42:16 +0000 (UTC) Date: Thu, 23 Jun 2016 13:42:16 +0000 (UTC) From: "Kihwal Lee (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10569) A bug causes OutOfIndex error in BlockListAsLongs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Jun 2016 13:42:18 -0000 [ https://issues.apache.org/jira/browse/HDFS-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15346443#comment-15346443 ] Kihwal Lee commented on HDFS-10569: ----------------------------------- It looks like {{index2BlockId()}} was used to get the right index before the change. [~daryn], please have a look. > 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 > > > 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 OutOfIndex. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org