hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rajeshbabu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8538) HBaseAdmin#isTableEnabled() should check table existence before checking zk state.
Date Tue, 14 May 2013 18:19:15 GMT

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

rajeshbabu commented on HBASE-8538:

If a table is ENABLED then we are removing table state znode in 0.92 but in 0.94 setting it
to ENABLED.So checking like below is correct to handle compatibility issues with 0.92 clients(HBASE-6710
and HBASE-6268). 
return state == null || state == TableState.ENABLED;
Master always sees table state as ENABLED but client is missing table existence check that's
why added table exists check in HBaseAdmin.

Do I answer your question?

> HBaseAdmin#isTableEnabled() should check table existence before checking zk state.
> ----------------------------------------------------------------------------------
>                 Key: HBASE-8538
>                 URL: https://issues.apache.org/jira/browse/HBASE-8538
>             Project: HBase
>          Issue Type: Bug
>          Components: Admin
>            Reporter: rajeshbabu
>            Assignee: rajeshbabu
>             Fix For: 0.94.8
>         Attachments: HBASE-8538_94.patch
> To avoid compatibility issues with older versions HBaseAdmin#isTableEnabled returning
true even if the table state is null. Its also returning true even a table is not present.
We should confirm table existence from .META. before checking in zk. If table not present
or deleted, then It will throw TableNotFoundException.

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

View raw message