hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chenrongwei (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15125) HBaseFsck's adoptHdfsOrphan function create region with end key boundary.
Date Sun, 17 Jan 2016 12:26:39 GMT
chenrongwei created HBASE-15125:
-----------------------------------

             Summary: HBaseFsck's adoptHdfsOrphan function create region with end key boundary.
                 Key: HBASE-15125
                 URL: https://issues.apache.org/jira/browse/HBASE-15125
             Project: HBase
          Issue Type: Bug
            Reporter: chenrongwei
            Assignee: chenrongwei


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 message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message