hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rong-En Fan (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-693) TestGet2::testGetClosestRowBefore() failed with NPE after HADOOP-3472
Date Tue, 17 Jun 2008 03:29:45 GMT
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

After HADOOP-3472, MapFile.getClosest(.., ..., true) gives the correct value.
In the unit test, we have 

35 <== deleted

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.

View raw message