Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C6331869F for ; Wed, 24 Jun 2015 05:13:48 +0000 (UTC) Received: (qmail 74600 invoked by uid 500); 24 Jun 2015 05:13:48 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 74542 invoked by uid 500); 24 Jun 2015 05:13:48 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 74525 invoked by uid 99); 24 Jun 2015 05:13:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2015 05:13:48 +0000 Date: Wed, 24 Jun 2015 05:13:48 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-13945) Prefix_Tree seekBefore() does not work correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ramkrishna.s.vasudevan updated HBASE-13945: ------------------------------------------- Fix Version/s: (was: 1.2.1) 2.0.0 > Prefix_Tree seekBefore() does not work correctly > ------------------------------------------------ > > Key: HBASE-13945 > URL: https://issues.apache.org/jira/browse/HBASE-13945 > Project: HBase > Issue Type: Bug > Affects Versions: 1.0.0, 0.98.2, 1.0.1, 1.1.0, 1.0.1.1, 1.1.0.1 > Reporter: ramkrishna.s.vasudevan > Assignee: ramkrishna.s.vasudevan > Fix For: 2.0.0, 0.98.14, 1.0.2, 1.2.0, 1.1.2, 1.3.0 > > Attachments: HBASE-13945_0.98.patch, HBASE-13945_0.98_1.patch, HBASE-13945_0.98_2.patch, HBASE-13945_0.98_3.patch, HBASE-13945_branch-1.1.patch, HBASE-13945_trunk.patch, HBASE-13945_trunk_1.patch, HBASE-13945_trunk_2.patch, HBASE-13945_trunk_3.patch > > > This is related to the TestSeekTo test case where the seekBefore() does not work with Prefix_Tree because of an issue in getFirstKeyInBlock(). In the trunk and branch-1 changing the return type of getFirstKeyInBlock() from BB to Cell resolved the problem, but the same cannot be done in 0.98. Hence we need a change in the KvUtil.copyToNewBuffer API to handle this. Since the limit is made as the position - in seekBefore when we do > {code} > byte[] firstKeyInCurrentBlock = Bytes.getBytes(firstKey); > {code} > in HFileReaderV2.seekBefore() we end up in an empty byte array and it would not be the expected one based on which we try to seek to load a new block. -- This message was sent by Atlassian JIRA (v6.3.4#6332)