[ 
https://issues.apache.org/jira/browse/HBASE-24957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Viraj Jasani resolved HBASE-24957.
----------------------------------
    Hadoop Flags: Reviewed
      Resolution: Fixed

> 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
>             Fix For: 1.7.0
>
>
> 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)

Reply via email to