sivabalan narayanan created HUDI-6420:
-----------------------------------------

             Summary: Fixing on-demand look up in hfile reader
                 Key: HUDI-6420
                 URL: https://issues.apache.org/jira/browse/HUDI-6420
             Project: Apache Hudi
          Issue Type: Bug
          Components: metadata
            Reporter: sivabalan narayanan


Looks like we are using seekTo() api in HfileScanner to seek to the key of 
interest. But under the hood, once the key is matched, the cursor is rewinded 
back to the starting of the data block. 

Ref: 
[https://github.com/apache/hbase/blob/cf02edbb1cea37a9a1cc4a64ff50f77a86955e5c/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileScanner.java#L51]

 

So, we want to fix the on-demand use-case to use reseek() apis which will leave 
the cursor as is. 

https://github.com/apache/hbase/blob/cf02edbb1cea37a9a1cc4a64ff50f77a86955e5c/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileScanner.java#L66

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to