hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Drob (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5224) midkey() returns 12 extra bytes in HFile v2
Date Tue, 03 Oct 2017 22:19:00 GMT

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

Mike Drob commented on HBASE-5224:
----------------------------------

Now that HFile v3 is default, does this still need to be addressed?

> 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
>            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 was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message