Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-24957

ZKTableStateClientSideReader#isDisabledTable doesn't check if table exists or not.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0, 1.3.6, 1.7.0
    • 1.7.0
    • Client
    • None
    • Reviewed

    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

          Activity

            People

              shahrs87 Rushabh Shah
              shahrs87 Rushabh Shah
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: