hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9462) HBaseAdmin#isTableEnabled() should return false for non-existent table
Date Wed, 11 Sep 2013 17:18:53 GMT

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

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

There's at least 10 different ways to check if a table exists, all used in the client. For
example, HCM.getHTableDescriptor will throw a TableNotFoundException for you. Or, in the registry,
if the znode is missing in ZK then it probably means the table doesn't exist.

Anyways, I was trying to get us to a more streamlined way of doing it but you're doing the
work so if you prefer sticking to scanning .META. via the CT then +1
                
> HBaseAdmin#isTableEnabled() should return false for non-existent table
> ----------------------------------------------------------------------
>
>                 Key: HBASE-9462
>                 URL: https://issues.apache.org/jira/browse/HBASE-9462
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.95.2
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 0.96.0, 0.94.13
>
>         Attachments: 9462-0.94.txt, 9462.patch, 9462-v2.patch, 9462-v3.patch
>
>
> HBaseAdmin#isTableEnabled() returns true for a table which doesn't exist.
> We should check table existence.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message