hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashu Pachauri (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17031) Scanners should check for null start and end rows
Date Wed, 09 Nov 2016 21:09:58 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15652044#comment-15652044
] 

Ashu Pachauri commented on HBASE-17031:
---------------------------------------

[~ashish singhi] Thanks for pointing it out. I'll mark it as a duplicate and put my comments
on HBASE-16498. 

> Scanners should check for null start and end rows
> -------------------------------------------------
>
>                 Key: HBASE-17031
>                 URL: https://issues.apache.org/jira/browse/HBASE-17031
>             Project: HBase
>          Issue Type: Bug
>          Components: Scanners
>            Reporter: Ashu Pachauri
>            Priority: Minor
>
> If a scan is passed with a null start row, it fails very deep in the call stack. We should
validate start and end rows for not null before launching the scan.
> Here is the associated jstack:
> {code}
> java.lang.RuntimeException: java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:219)
> 	at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:326)
> 	at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:301)
> 	at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:166)
> 	at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:161)
> 	at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:798)
> Caused by: java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.util.Bytes.compareTo(Bytes.java:1225)
> 	at org.apache.hadoop.hbase.util.Bytes$ByteArrayComparator.compare(Bytes.java:158)
> 	at org.apache.hadoop.hbase.util.Bytes$ByteArrayComparator.compare(Bytes.java:147)
> 	at org.apache.hadoop.hbase.types.CopyOnWriteArrayMap$ArrayHolder.find(CopyOnWriteArrayMap.java:892)
> 	at org.apache.hadoop.hbase.types.CopyOnWriteArrayMap.floorEntry(CopyOnWriteArrayMap.java:169)
> 	at org.apache.hadoop.hbase.client.MetaCache.getCachedLocation(MetaCache.java:79)
> 	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.getCachedLocation(ConnectionManager.java:1391)
> 	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1231)
> 	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1183)
> 	at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:305)
> 	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156)
> 	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
> 	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:211)
> 	... 30 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message