hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pankaj Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16498) NPE when Scan's stopRow is set NULL
Date Thu, 25 Aug 2016 02:32:20 GMT
Pankaj Kumar created HBASE-16498:

             Summary: 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
            Reporter: Pankaj Kumar
            Assignee: Pankaj Kumar
            Priority: Minor

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.

	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)

We should return empty byte array when start/end row is set NULL.

This message was sent by Atlassian JIRA

View raw message