hbase-issues mailing list archives

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

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

Andrew Purtell commented on HBASE-4032:
---------------------------------------

It is not "deprecation" to actually break a method until after a release cycle where the API
in question is marked as deprecated. So either we agree that public APIs get deprecated, or
our users have to assume that anything arbitrarily can break at every release.

Returning null from a method that used to return a valid object is a no no. Substituting something
that produces the same result but is more expensive is acceptable.

> 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

        

Mime
View raw message