You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Rushabh Shah (Jira)" <ji...@apache.org> on 2020/08/27 16:42:00 UTC
[jira] [Updated] (HBASE-24957)
ZKTableStateClientSideReader#isDisabledTable doesn't check if table exists
or not.
[ https://issues.apache.org/jira/browse/HBASE-24957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rushabh Shah updated HBASE-24957:
---------------------------------
Affects Version/s: 1.7.0
1.3.6
> ZKTableStateClientSideReader#isDisabledTable doesn't check if table exists or not.
> ----------------------------------------------------------------------------------
>
> Key: HBASE-24957
> URL: https://issues.apache.org/jira/browse/HBASE-24957
> Project: HBase
> Issue Type: Bug
> Components: Client
> Affects Versions: 1.6.0, 1.3.6, 1.7.0
> Reporter: Rushabh Shah
> Assignee: Rushabh Shah
> Priority: Major
>
> The following bug exists only in branch-1 and below.
> ZKTableStateClientSideReader#isDisabledTable returns false even if table doesn't exists.
> Below is the code snippet:
> {code:title=ZKTableStateClientSideReader.java|borderStyle=solid}
> public static boolean isDisabledTable(final ZooKeeperWatcher zkw,
> final TableName tableName)
> throws KeeperException, InterruptedException {
> ZooKeeperProtos.Table.State state = getTableState(zkw, tableName); ---> We should check here if state is null or not.
> return isTableState(ZooKeeperProtos.Table.State.DISABLED, state);
> }
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)