hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ryan rawson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-1330) binary keys broken on trunk
Date Mon, 20 Apr 2009 06:15:47 GMT

     [ https://issues.apache.org/jira/browse/HBASE-1330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

ryan rawson updated HBASE-1330:

    Status: Patch Available  (was: Open)

this is a typical META bug - using the normal Bytes comparator to compare the 'row' section
causes problems when the first byte is '\0'.  So if you have keys that start with a value
< ',', most common in the binary key case (when the first byte is '\0'), you end up with
incorrect storing saying things like:

table,,1234  > table,\0,1234

which is not correct.  since [] < '\0'.

> binary keys broken on trunk
> ---------------------------
>                 Key: HBASE-1330
>                 URL: https://issues.apache.org/jira/browse/HBASE-1330
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: ryan rawson
>            Assignee: ryan rawson
>             Fix For: 0.20.0
>         Attachments: HBASE-1330.patch
> The symptom is commits fail with 'table not found' exception - even though the table
does in fact exist!
> Digging in a little with debug logs indicate that getClosestRowBefore() is returning
NULL, which for a table that exists should never be!  A key always falls into a region - either
the first or the last one at the very least.

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

View raw message