[
https://issues.apache.org/jira/browse/HBASE-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-693.
-------------------------
Resolution: Duplicate
Closing. Was fixed over in HBASE-716.
> TestGet2::testGetClosestRowBefore() failed with NPE after HADOOP-3472
> ---------------------------------------------------------------------
>
> Key: HBASE-693
> URL: https://issues.apache.org/jira/browse/HBASE-693
> Project: Hadoop HBase
> Issue Type: Bug
> Components: regionserver
> Affects Versions: 0.2.0
> Environment: hadoop 0.17.0 + HADOOP-3472, HBase latest trunk
> Reporter: Rong-En Fan
> Fix For: 0.2.0
>
>
> After HADOOP-3472, MapFile.getClosest(.., ..., true) gives the correct value.
> In the unit test, we have
> 10
> 20
> 30
> 35 <== deleted
> 40
> in the MapFile. so in HStore.java's rowAtOrBeforeFromMapFile(MapFile.reader,
> bytes, ...)
> readkey = (HStoreKey)map.getClosest(searchKey, readval, true);
> it gets the deleted key 35. So it can not be added into candidateKeys.
> The next key is 40, which is after the search key 38. So, we ends up
> with empty candidateKeys. Therefore, we lastKey() is null. cause TestGet2.java
> line 236 failed with NPE.
> Since MapFile.Reader has no prev(key) method, not sure what's the best
> to do in HStore.java.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.