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

HBaseFsck's adoptHdfsOrphan function creates region with wrong end key boundary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.3.0, 0.98.18, 2.0.0
    • hbck
    • None
    • Reviewed
    • Patch, Important

    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]));

      Attachments

        1. HBASE-15125-v005.patch
          5 kB
          chenrongwei
        2. HBASE-15125-v004.patch
          5 kB
          chenrongwei
        3. HBASE-15125-v004.patch
          5 kB
          Ted Yu
        4. HBASE-15125-v003.patch
          4 kB
          chenrongwei
        5. HBASE-15125-v002.patch
          244 kB
          chenrongwei
        6. HBASE-15125-v001-for-branch-1
          4 kB
          chenrongwei
        7. HBASE-15125-V001.patch
          1.0 kB
          chenrongwei

        Issue Links

          Activity

            People

              chenrongwei chenrongwei
              chenrongwei chenrongwei
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: