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 B289D200B74 for ; Thu, 1 Sep 2016 13:48:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B0F55160AB5; Thu, 1 Sep 2016 11:48:26 +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 05945160AAE for ; Thu, 1 Sep 2016 13:48:25 +0200 (CEST) Received: (qmail 30503 invoked by uid 500); 1 Sep 2016 11:48:20 -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 30296 invoked by uid 99); 1 Sep 2016 11:48:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 11:48:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7FD7E2C1B7F for ; Thu, 1 Sep 2016 11:48:20 +0000 (UTC) Date: Thu, 1 Sep 2016 11:48:20 +0000 (UTC) From: "Pankaj Kumar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16498) NPE when Scan's stopRow is set NULL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Sep 2016 11:48:26 -0000 [ https://issues.apache.org/jira/browse/HBASE-16498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pankaj Kumar updated HBASE-16498: --------------------------------- Attachment: HBASE-16498-V3.patch > NPE when Scan's stopRow is set NULL > ----------------------------------- > > Key: HBASE-16498 > URL: https://issues.apache.org/jira/browse/HBASE-16498 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 2.0.0, 1.3.0, 1.4.0, 1.1.6, 1.2.3 > Reporter: Pankaj Kumar > Assignee: Pankaj Kumar > Priority: Minor > Attachments: HBASE-16498-V2.patch, HBASE-16498-V3.patch, HBASE-16498.patch > > > During scan operation we validate whether this is the last region of table, if not then records will be retrieved from nextscanner. If stop row is set null then NPE will be thrown while validating stop row with region endkey. > {noformat} > java.lang.NullPointerException > at org.apache.hadoop.hbase.client.ClientScanner.checkScanStopRow(ClientScanner.java:217) > at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:266) > at org.apache.hadoop.hbase.client.ClientScanner.possiblyNextScanner(ClientScanner.java:237) > at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:537) > at org.apache.hadoop.hbase.client.ClientScanner.nextWithSyncCache(ClientScanner.java:363) > at org.apache.hadoop.hbase.client.ClientSimpleScanner.next(ClientSimpleScanner.java:50) > at org.apache.hadoop.hbase.client.AbstractClientScanner.next(AbstractClientScanner.java:70) > at org.apache.hadoop.hbase.client.TestAdmin2.testScanWithSplitKeysAndNullStartEndRow(TestAdmin2.java:803) > {noformat} > We should return empty byte array when start/end row is set NULL. -- This message was sent by Atlassian JIRA (v6.3.4#6332)