midkey() returns 12 extra bytes in HFile v2
-------------------------------------------

                 Key: HBASE-5224
                 URL: https://issues.apache.org/jira/browse/HBASE-5224
             Project: HBase
          Issue Type: Bug
            Reporter: Mikhail Bautin
            Assignee: Mikhail Bautin
            Priority: Minor


HFile's midkey() is implemented as the first key of the middle index block both 
HFile v1 and HFile v2 (the middle leaf index block is used in v2). However, in 
HFile v2 midkey() currently grabs 12 more bytes from the next leaf index entry, 
representing the offset and compressed size of the data block pointed to by 
that entry. While this probably does not affect the interpretation of the 
returned buffer as an HBase key (the last 12 bytes are simply discarded), this 
has to be cleaned up. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to