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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.92.2, 0.94.3, 0.95.2
    • Fix Version/s: 0.94.4, 0.95.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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. 7307-trunk.txt
          4 kB
          Ted Yu
        2. HBASE-7307_92.patch
          4 kB
          rajeshbabu
        3. HBASE-7307_94.patch
          3 kB
          rajeshbabu
        4. HBASE-7307_trunk.patch
          4 kB
          rajeshbabu

          Activity

            People

            • Assignee:
              rajesh23 rajeshbabu
              Reporter:
              rajesh23 rajeshbabu
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: