Description
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:
ZKTableStateClientSideReader.java
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); } }
Attachments
Issue Links
- links to