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 91EAF200B81 for ; Tue, 30 Aug 2016 06:32:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85EB9160AC8; Tue, 30 Aug 2016 04:32:23 +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 CCDFC160AB8 for ; Tue, 30 Aug 2016 06:32:22 +0200 (CEST) Received: (qmail 39281 invoked by uid 500); 30 Aug 2016 04:32:22 -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 39264 invoked by uid 99); 30 Aug 2016 04:32:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 04:32:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B5DAB2C014F for ; Tue, 30 Aug 2016 04:32:21 +0000 (UTC) Date: Tue, 30 Aug 2016 04:32:21 +0000 (UTC) From: "Hiroshi Ikeda (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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: Tue, 30 Aug 2016 04:32:23 -0000 [ https://issues.apache.org/jira/browse/HBASE-16498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15447991#comment-15447991 ] Hiroshi Ikeda commented on HBASE-16498: --------------------------------------- It is better to add a comment about how to scan to the end row. If there is no description it goes without saying that the behavior is undefined. > 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.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)