Grokbase Groups HBase dev March 2009
FAQ
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.

Search Discussions

  • ryan rawson (JIRA) at Mar 6, 2009 at 6:40 am
    [ https://issues.apache.org/jira/browse/HBASE-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    ryan rawson reassigned HBASE-1245:
    ----------------------------------

    Assignee: ryan rawson
    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
    Assignee: ryan rawson
    Fix For: 0.20.0

    Attachments: HBASE-1240.patch


    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.
  • ryan rawson (JIRA) at Mar 6, 2009 at 6:40 am
    [ https://issues.apache.org/jira/browse/HBASE-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    ryan rawson updated HBASE-1245:
    -------------------------------

    Attachment: HBASE-1240.patch

    fixes
    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
    Assignee: ryan rawson
    Fix For: 0.20.0

    Attachments: HBASE-1240.patch


    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.
  • ryan rawson (JIRA) at Mar 6, 2009 at 6:42 am
    [ https://issues.apache.org/jira/browse/HBASE-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    ryan rawson updated HBASE-1245:
    -------------------------------

    Status: Patch Available (was: Open)
    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
    Assignee: ryan rawson
    Fix For: 0.20.0

    Attachments: HBASE-1240.patch


    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.
  • stack (JIRA) at Mar 6, 2009 at 6:48 am
    [ https://issues.apache.org/jira/browse/HBASE-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    stack updated HBASE-1245:
    -------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    Committed. Thanks for the patch Ryan.
    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
    Assignee: ryan rawson
    Fix For: 0.20.0

    Attachments: HBASE-1240.patch


    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedMar 6, '09 at 6:18a
activeMar 6, '09 at 6:48a
posts5
users1
websitehbase.apache.org

1 user in discussion

stack (JIRA): 5 posts

People

Translate

site design / logo © 2022 Grokbase