hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Soldatov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15884) NPE in StoreFileScanner during reverse scan
Date Tue, 24 May 2016 09:34:13 GMT

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

Sergey Soldatov commented on HBASE-15884:
-----------------------------------------

Bug valid for 2.0 as well
{noformat}
java.lang.NullPointerException
	at org.apache.hadoop.hbase.CellComparator.compareRows(CellComparator.java:351)
	at org.apache.hadoop.hbase.regionserver.StoreFileScanner.skipKVsNewerThanReadpoint(StoreFileScanner.java:259)
	at org.apache.hadoop.hbase.regionserver.StoreFileScanner.seekToPreviousRow(StoreFileScanner.java:493)
	at org.apache.hadoop.hbase.regionserver.StoreFileScanner.backwardSeek(StoreFileScanner.java:537)
	at org.apache.hadoop.hbase.regionserver.ReversedStoreScanner.seekScanners(ReversedStoreScanner.java:82)
	at org.apache.hadoop.hbase.regionserver.StoreScanner.resetScannerStack(StoreScanner.java:800)
	at org.apache.hadoop.hbase.regionserver.StoreScanner.checkReseek(StoreScanner.java:766)
	at org.apache.hadoop.hbase.regionserver.StoreScanner.next(StoreScanner.java:488)
	at org.apache.hadoop.hbase.regionserver.KeyValueHeap.next(KeyValueHeap.java:153)
	at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.populateResult(HRegion.java:5737)
	at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:5883)
	at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextRaw(HRegion.java:5676)
	at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2743)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:34818)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2273)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:116)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:137)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:112)
	at java.lang.Thread.run(Thread.java:745)
{noformat}

> NPE in StoreFileScanner 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
>
> 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)

Mime
View raw message