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 01:48:00 UTC
[jira] [Created] (HBASE-24957)
ZKTableStateClientSideReader#isDisabledTable doesn't check if table exists
or not.
Rushabh Shah created HBASE-24957:
------------------------------------
Summary: 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
Reporter: Rushabh Shah
Assignee: Rushabh Shah
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)