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 66EBC200B32 for ; Wed, 25 May 2016 03:12:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65706160A36; Wed, 25 May 2016 01:12:14 +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 D4F97160A35 for ; Wed, 25 May 2016 03:12:13 +0200 (CEST) Received: (qmail 71798 invoked by uid 500); 25 May 2016 01:12:13 -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 71784 invoked by uid 99); 25 May 2016 01:12:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 01:12:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CFE642C1F5C for ; Wed, 25 May 2016 01:12:12 +0000 (UTC) Date: Wed, 25 May 2016 01:12:12 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-15884) NPE in StoreFileScanner#skipKVsNewerThanReadpoint during reverse scan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 May 2016 01:12:14 -0000 [ https://issues.apache.org/jira/browse/HBASE-15884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-15884: --------------------------- Hadoop Flags: Reviewed > NPE in StoreFileScanner#skipKVsNewerThanReadpoint during reverse scan > --------------------------------------------------------------------- > > Key: HBASE-15884 > URL: https://issues.apache.org/jira/browse/HBASE-15884 > Project: HBase > Issue Type: Bug > Components: Scanners > Affects Versions: 2.0.0, 1.2.1 > Reporter: Sergey Soldatov > Assignee: Sergey Soldatov > Attachments: HBASE-15884-1.patch > > > Here is a part of {{skipKVsNewerThanReadpoint}} method: > {noformat} > hfs.next(); > setCurrentCell(hfs.getKeyValue()); > if (this.stopSkippingKVsIfNextRow > && getComparator().compareRows(cur.getRowArray(), cur.getRowOffset(), > cur.getRowLength(), startKV.getRowArray(), startKV.getRowOffset(), > startKV.getRowLength()) > 0) { > {noformat} > If hfs has no more KVs, cur will be set to Null and on on the next step will throw NPE. -- This message was sent by Atlassian JIRA (v6.3.4#6332)