hfile meta block handling bugs
------------------------------

                 Key: HBASE-1245
                 URL: https://issues.apache.org/jira/browse/HBASE-1245
             Project: Hadoop HBase
          Issue Type: Bug
    Affects Versions: 0.20.0
         Environment: all
            Reporter: ryan rawson
             Fix For: 0.20.0


HFile doesn't handle 'get meta block' when there are no meta blocks.  It throws 
an unhelpful exception "meta index not loaded", which is not the case.  No meta 
blocks = no meta index.  It should return null instead.

Additionally, hfile doesn't even get all meta names properly, due to the 
incorrect use of the file's comparator, instead of using just a bytes 
comparator in the index.  This is manifested by NPEs in some tests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to