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

MetaReader.tableExists should not return false if the specified table regions has been split

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.2, 0.94.3, 0.95.2
    • 0.94.4, 0.95.0
    • None
    • None
    • Reviewed

    Description

      If a region is split parent we are not adding it to META scan results during full scan.

              if (!isInsideTable(this.current, tableNameBytes)) return false;
              if (this.current.isSplitParent()) return true;
              // Else call super and add this Result to the collection.
              super.visit(r);
      

      If all regions of a table has been split then result size will be zero and returning false.

       
          fullScan(catalogTracker, visitor, getTableStartRowForMeta(tableNameBytes));
          // If visitor has results >= 1 then table exists.
          return visitor.getResults().size() >= 1;
      

      Even table is present we are returning false which is not correct(its highly possible in case of tables with one region).

      Attachments

        1. HBASE-7307_trunk.patch
          4 kB
          rajeshbabu
        2. HBASE-7307_94.patch
          3 kB
          rajeshbabu
        3. HBASE-7307_92.patch
          4 kB
          rajeshbabu
        4. 7307-trunk.txt
          4 kB
          Ted Yu

        Activity

          People

            rajesh23 rajeshbabu
            rajesh23 rajeshbabu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: