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

Backport HBASE-15125 'HBaseFsck's adoptHdfsOrphan function creates region with wrong end key boundary' to Apache HBase 1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.5
    • 1.1.6
    • hbck
    • None

    Description

      There is a bug in HBaseFsck's adoptHdfsOrphan function.At the last of this function will create a region,which want to cover all the orphan regions.But the end key of this new region was set incorrectly.Correct region's boundary should be [startKey,endKey),but this function create a region with boundary of [startKey,endKey],this bug will leads to scan operation omit some data.
      I think we should create the region like bellow,

          // create new region on hdfs. move data into place.
          HRegionInfo hri = new HRegionInfo(template.getTableName(), orphanRegionRange.getFirst(),
              Bytes.add(orphanRegionRange.getSecond(), new byte[1]));
      

      This is to backport HBASE-15125 to branch-1.1. HBASE-15827 could not do it due to a bug in TestHBaseFsck test suite (see HBASE-15850)

      Attachments

        1. HBASE-15852.v1-branch-1.1.patch
          4 kB
          Stephen Yuan Jiang

        Issue Links

          Activity

            People

              syuanjiang Stephen Yuan Jiang
              syuanjiang Stephen Yuan Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: