Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F59C10F8F for ; Tue, 13 Aug 2013 20:30:49 +0000 (UTC) Received: (qmail 36114 invoked by uid 500); 13 Aug 2013 20:30:49 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 36086 invoked by uid 500); 13 Aug 2013 20:30:48 -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 36077 invoked by uid 99); 13 Aug 2013 20:30:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 20:30:48 +0000 Date: Tue, 13 Aug 2013 20:30:48 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9204) An Offline SplitParent Region can be assigned breaking split references MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-9204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13738784#comment-13738784 ] Matteo Bertozzi commented on HBASE-9204: ---------------------------------------- {quote}Good point. I can add another check. During restore/clone a table, when will the table is enabled/created?{quote} clone and restore follow the same CreateTable code, with the difference that in this case the list of HRegionInfo passed to the assignmentManager.assign() may contain some offline split parent, so there're no znodes or other states around. > An Offline SplitParent Region can be assigned breaking split references > ----------------------------------------------------------------------- > > Key: HBASE-9204 > URL: https://issues.apache.org/jira/browse/HBASE-9204 > Project: HBase > Issue Type: Bug > Components: Region Assignment > Affects Versions: 0.98.0, 0.95.1, 0.94.10 > Reporter: Matteo Bertozzi > Assignee: Jimmy Xiang > Fix For: 0.98.0, 0.95.2, 0.94.11 > > Attachments: 0.94-9204.patch, HBASE-9294-0.94-v0.patch, trunk-9204.patch, trunk-9204_v2.patch > > > An offline split parent region can be assigned by using 'assign' from shell. > This may trigger a compaction on the split parent region that should be offline, breaking the references of the two daughters. > The easy way to test this is: > * disable compactions > * create a table and insert some row > * split > * shutdown the master (otherwise there's a state checked inside the AssignmentManager) > * start the master > * assign the region marked as OFFLINE => true, SPLIT => true (the compaction on region startup will probably break the reference of the two daughters) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira