[
https://issues.apache.org/jira/browse/HBASE-15125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15109002#comment-15109002
]
Ted Yu commented on HBASE-15125:
--------------------------------
{code}
310 * Counts the number of row to verify data loss or non-dataloss.
{code}
number of row -> number of rows
{code}
1580 * .regioinfino missing (an orphan hdfs region)in the fs. At last we
check every row was present
{code}
.regioinfino -> .regioninfo
{code}
1584 public void testHDFSRegioninfoMissingAndCheckRegionBoundary() throws
Exception {
1585 TableName table = TableName.valueOf("tableHDFSRegioninfoMissing");
{code}
Table name should match test name - this would make future debugging easier.
> HBaseFsck's adoptHdfsOrphan function create region with wrong end key
> boundary.
> -------------------------------------------------------------------------------
>
> Key: HBASE-15125
> URL: https://issues.apache.org/jira/browse/HBASE-15125
> Project: HBase
> Issue Type: Bug
> Components: hbck
> Affects Versions: 2.0.0
> Reporter: chenrongwei
> Assignee: chenrongwei
> Attachments: HBASE-15125-V001.patch, HBASE-15125-v002.patch,
> HBASE-15125-v003.patch
>
>
> 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)