hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-4032) HBASE-451 improperly breaks public API HRegionInfo#getTableDesc
Date Thu, 28 Jul 2011 04:09:09 GMT

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

Ted Yu commented on HBASE-4032:

The most common usage of HRegionInfo#getTableDesc is hri.getTableDesc().getNameAsString()
which has equivalent in TRUNK already.
I think HRegionInfo#getTableDesc returning null is a fail-fast approach so that the caller
knows alternative should be sought. This is better than a temporary solution which would cause
performance issue.

> HBASE-451 improperly breaks public API HRegionInfo#getTableDesc
> ---------------------------------------------------------------
>                 Key: HBASE-4032
>                 URL: https://issues.apache.org/jira/browse/HBASE-4032
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Andrew Purtell
>            Assignee: stack
>            Priority: Blocker
>             Fix For: 0.92.0
>         Attachments: 4032.txt
> After HBASE-451, HRegionInfo#getTableDesc has been modified to always return {{null}}.

> One immediate effect is broken unit tests.
> That aside, it is not in the spirit of deprecation to actually break the method until
after the deprecation cycle, it's a bug.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message