Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DCE26200AEF for ; Sat, 14 May 2016 01:42:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DC11F160A1D; Fri, 13 May 2016 23:42:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3862F16099F for ; Sat, 14 May 2016 01:42:14 +0200 (CEST) Received: (qmail 13178 invoked by uid 500); 13 May 2016 23:42:13 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 13123 invoked by uid 99); 13 May 2016 23:42:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 23:42:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 163A72C1F64 for ; Fri, 13 May 2016 23:42:13 +0000 (UTC) Date: Fri, 13 May 2016 23:42:13 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-15125) HBaseFsck's adoptHdfsOrphan function creates region with wrong end key boundary MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 13 May 2016 23:42:15 -0000 [ https://issues.apache.org/jira/browse/HBASE-15125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283310#comment-15283310 ] Hudson commented on HBASE-15125: -------------------------------- SUCCESS: Integrated in HBase-1.2-IT #506 (See [https://builds.apache.org/job/HBase-1.2-IT/506/]) Backport HBASE-15125 HBaseFsck's adoptHdfsOrphan function creates region (tedyu: rev f778736b658b28b24ce7bb7428ab3b268d742765) * hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java * hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsck.java > HBaseFsck's adoptHdfsOrphan function creates 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 > Fix For: 2.0.0, 1.3.0, 0.98.18 > > Attachments: HBASE-15125-V001.patch, HBASE-15125-v001-for-branch-1, HBASE-15125-v002.patch, HBASE-15125-v003.patch, HBASE-15125-v004.patch, HBASE-15125-v004.patch, HBASE-15125-v005.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)