hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Yuan Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-15852) Backport HBASE-15125 'HBaseFsck's adoptHdfsOrphan function creates region with wrong end key boundary' to Apache HBase 1.1
Date Wed, 18 May 2016 16:43:13 GMT

     [ https://issues.apache.org/jira/browse/HBASE-15852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stephen Yuan Jiang updated HBASE-15852:
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.6
           Status: Resolved  (was: Patch Available)

> Backport HBASE-15125 'HBaseFsck's adoptHdfsOrphan function creates region with wrong
end key boundary' to Apache HBase 1.1
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-15852
>                 URL: https://issues.apache.org/jira/browse/HBASE-15852
>             Project: HBase
>          Issue Type: Bug
>          Components: hbck
>    Affects Versions: 1.1.5
>            Reporter: Stephen Yuan Jiang
>            Assignee: Stephen Yuan Jiang
>             Fix For: 1.1.6
>
>         Attachments: HBASE-15852.v1-branch-1.1.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,
> {code}
>     // create new region on hdfs. move data into place.
>     HRegionInfo hri = new HRegionInfo(template.getTableName(), orphanRegionRange.getFirst(),
>         Bytes.add(orphanRegionRange.getSecond(), new byte[1]));
> {code}
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message