You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2011/03/24 23:38:05 UTC

[jira] [Commented] (HBASE-3612) HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist

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

Jean-Daniel Cryans commented on HBASE-3612:
-------------------------------------------

We just found the same issue with HCM.isTableEnabled and I think the fix done in the scope of this jira isn't the right one. If the table doesn't exist, we should throw TableNotFoundException instead of returning _false_.

I propose we reopen this jira, widen it's scope, do the fix that throws the Exception and add some unit tests.

> HBaseAdmin::isTableAvailable( name ) returns true when the table does not exist
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-3612
>                 URL: https://issues.apache.org/jira/browse/HBASE-3612
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.90.1, 0.92.0
>            Reporter: Jeremy Hinegardner
>            Assignee: Andrew Purtell
>             Fix For: 0.90.2, 0.92.0
>
>         Attachments: HBASE-3612.patch
>
>
> HBaseAdmin::isTableAvailable( name )  returns true for a table in which HBaseAdmin::tableExists( name ) returns false.
> It appears from the code that the default return value from isTableAvailable() is true and false is only returned in the case where the table is found and not all the region servers are online.

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